Пример #1
0
 public AccountService(IAccountDataAccessor accountDataAccessor,
                       IAccountSignUpStrategyDataAccessor accountSignUpStrategyDataAccessor,
                       IAccountSignUpService accountSignUpEvaluator,
                       IAccountFactory accountFactory)
 {
     _accountDataAccessor = accountDataAccessor;
     _accountSignUpStrategyDataAccessor = accountSignUpStrategyDataAccessor;
     _accountSignUpEvaluator            = accountSignUpEvaluator;
     _accountFactory = accountFactory;
 }
Пример #2
0
 public AccountServiceTests()
 {
     _accountSignUpStrategyDataAccessor = Substitute.For <IAccountSignUpStrategyDataAccessor>();
     _accountDataAccessor  = Substitute.For <IAccountDataAccessor>();
     _accountSignUpService = Substitute.For <IAccountSignUpService>();
     _accountFactory       = Substitute.For <IAccountFactory>();
     _accountService       = new AccountService(_accountDataAccessor,
                                                _accountSignUpStrategyDataAccessor,
                                                _accountSignUpService,
                                                _accountFactory);
 }