protected virtual void Dispose(bool disposing) { if (disposing) { UsersDbContextFactory.Destroy(DbContext); } }
public QueryHandlerTestFixture() { DbContext = UsersDbContextFactory.Create(); PopulateTestData(); var configurationProvider = new MapperConfiguration(cfg => { cfg.AddProfile <MappingProfile>(); }); Mapper = configurationProvider.CreateMapper(); }
public CommandTestBase() { DbContext = UsersDbContextFactory.Create(); PopulateTestData(); }