示例#1
0
        public TestBase()
        {
            Context = ContextFactory.Create();

            var config = new MapperConfiguration(cfg => { cfg.AddProfile <AutoMappingProfile>(); });

            Mapper = config.CreateMapper();
        }
示例#2
0
        public QueryTestFixture()
        {
            Context = ContextFactory.Create();

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

            Mapper = configurationProvider.CreateMapper();
        }
 public CommandTestBase()
 {
     _context = ContextFactory.Create();
 }
示例#4
0
 public QueryTestFixture()
 {
     Context = ContextFactory.Create();
 }
示例#5
0
 public CommandTestBase()
 {
     _context    = ContextFactory.Create();
     _mapperMock = new Mock <IMapper>();
 }