コード例 #1
0
        public QueryTestFixture()
        {
            _context   = ApplicationDbContextFactory.Create();
            UnitOfWork = new UnitOfWork(_context);

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

            Mapper = configProvider.CreateMapper();
        }
コード例 #2
0
        public TestFixture()
        {
            DbContext = ApplicationDbContextFactory.Create();

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

            Mapper = configurationProvider.CreateMapper();
        }
コード例 #3
0
 public CommandTestBase()
 {
     Context = ApplicationDbContextFactory.Create();
 }
コード例 #4
0
 public CommandTestBase()
 {
     _context   = ApplicationDbContextFactory.Create();
     UnitOfWork = new UnitOfWork(_context);
 }