public QueryTestFixture()
        {
            Context = CheckoutWebDbContextFactory.Create();

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

            Mapper = configurationProvider.CreateMapper();

            AppSettings = new ApplicationSettings()
            {
                JwtKey = "TesTesttTestTest", DesEncrytpKey = "TestTestTestTest", JwtIssuer = "TestTestTestTest"
            };

            EncryptionService = new EncryptionService();
        }
 public void Dispose()
 {
     CheckoutWebDbContextFactory.Destroy(Context);
 }
Exemple #3
0
 public CommandTestBase()
 {
     _context = CheckoutWebDbContextFactory.Create();
 }