Example #1
0
        public QueryTestBase()
        {
            this.Context = ReturnDbContextFactory.Create();

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

            this.Mapper = configurationProvider.CreateMapper();
        }
Example #2
0
 public void Dispose() => ReturnDbContextFactory.Destroy(context: this.Context);
Example #3
0
 public CommandTestBase()
 {
     this.Context = ReturnDbContextFactory.Create();
 }