Пример #1
0
        public QueryTestBase()
        {
            Context = ColabSpaceDbContextFactory.Create();

            Mapper = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile <MappingProfile>();
            }).CreateMapper();
        }
Пример #2
0
        public CommandTestBase()
        {
            _context = ColabSpaceDbContextFactory.Create();
            var configurationProvider = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile <MappingProfile>();
            });

            _mapper = configurationProvider.CreateMapper();
        }
Пример #3
0
        public QueryTestFixture()
        {
            Context = ColabSpaceDbContextFactory.Create();

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

            Mapper = configurationProvider.CreateMapper();
        }
Пример #4
0
 public void Dispose()
 {
     ColabSpaceDbContextFactory.Destroy(Context);
 }