Beispiel #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         UsersDbContextFactory.Destroy(DbContext);
     }
 }
Beispiel #2
0
        public QueryHandlerTestFixture()
        {
            DbContext = UsersDbContextFactory.Create();

            PopulateTestData();

            var configurationProvider = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile <MappingProfile>();
            });

            Mapper = configurationProvider.CreateMapper();
        }
Beispiel #3
0
        public CommandTestBase()
        {
            DbContext = UsersDbContextFactory.Create();

            PopulateTestData();
        }