Beispiel #1
0
 public static void BeforeDeliveryAddressScenarios()
 {
     var addressRepository = new AddressRepository();
     var logger = new FakeLogger();
     var addressService = new DeliveryAddressService(addressRepository, logger);
     ScenarioContext.Current.Set(addressService);
 }
Beispiel #2
0
 public static void BeforePackagesScenarios()
 {
     var context = new ShopAnyWareSql();
     var userRepository = new UserRepository(context);
     var packageRepository = new PackageRepository();
     var itemsRepository = new ItemsRepository();
     var addressRepository = new AddressRepository();
     var logger = new FakeLogger();
     var emailSvc = new FakeEmailService();
     var packagesService = new PackagesService(
         packageRepository, userRepository, addressRepository, emailSvc, logger);
     var itemsService = new ItemsService(itemsRepository, packageRepository, logger);
     ScenarioContext.Current.Set(packagesService);
     ScenarioContext.Current.Set(itemsService);
 }