} // Unit of work public TestBase(Fixture fixture) { Services = fixture.ServiceProvider; Context = Services.GetService <PhoneBookContext>(); if (Context.Database.EnsureCreated()) { Context.SeedSampleData(); } }
} // Unit of work public TestBase(Fixture fixture) { Services = fixture.ServiceProvider; Context = Services.GetService <PhoneBookContext>(); if (Context.Database.EnsureCreated()) { Context.SeedSampleData(); } }