using Data.EF.Players; using Microsoft.EntityFrameworkCore; using Model.Games; using System.Security.Cryptography.X509Certificates; namespace Data.EF { public class DiceAppDbContextWithStub : DiceAppDbContext { public override GameRunner LoadApp() { throw new NotImplementedException(); } public DiceAppDbContextWithStub() { } public DiceAppDbContextWithStub(DbContextOptions options) : base(options) { } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity().HasData( new PlayerEntity { ID = Guid.NewGuid(), Name = "Alice" }, // some tests depend on this name new PlayerEntity { ID = Guid.NewGuid(), Name = "Bob" }, // some tests depend on this name new PlayerEntity { ID = Guid.NewGuid(), Name = "Clyde" }, // some tests depend on this name new PlayerEntity { ID = Guid.NewGuid(), Name = "Dahlia" } // some tests depend on this name ); } } }