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

            PopulateTestData();

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

            Mapper = configurationProvider.CreateMapper();
        }
コード例 #3
0
        public CommandTestBase()
        {
            DbContext = UsersDbContextFactory.Create();

            PopulateTestData();
        }