Ejemplo n.º 1
0
 public static void BeforeExpressCheckoutScenarios()
 {
     var context = new ShopAnyWareSql();
     var userRepository = new UserRepository(context);
     var roleRepository = new RoleRepository(context);
     var profileRepository = new ProfileRepository(context);
     var membershipRepository = new MembershipRepository();
     var transactionRepo = new TransactionsRepository();
     var emailSvc = new FakeEmailService();
     var logger = new FakeLogger();
     var emailService = new FakeEmailService();
     var transactionService = new TransactionService(transactionRepo, emailSvc, logger);
     ScenarioContext.Current.Set(transactionService);
     var membershipService = new MembershipService(logger, emailService, userRepository, roleRepository, profileRepository, membershipRepository);
     ScenarioContext.Current.Set(membershipService);
 }