public static void BeforeItemsScenarios() { var itemsRepository = new ItemsRepository(); var packageRepository = new PackageRepository(); var logger = new FakeLogger(); var itemsService = new ItemsService(itemsRepository, packageRepository, logger); ScenarioContext.Current.Set(itemsService); }
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); }