Example #1
0
 public RegistrationTests()
 {
     this.factory = new RegistrationFactory();
     this.accountService = new MockAccountService();
     this.emailService = new MockEmailService();
     this.accountServiceEmailAlreadyTaken = new MockAccountService(true);
 }
 public AssemblyBoundedRegistrator(
     IRegistry registry,
     IRegistrationFactory registrationFactory)
 {
     _registry            = registry;
     _registrationFactory = registrationFactory;
 }
 public RegistrationController(
     IRegistrationFactory factory, 
     IRegistrationRepository repository, 
     IAccountService accountService,
     IEmailService emailService)
 {
     this.factory = factory;
     this.repository = repository;
     this.accountService = accountService;
 }
Example #4
0
        //public RegistrationController(IRepository da, IRegistrationFactory registrationFactory, ILogger logger, INotificationProvider<Email, bool> emailEngine)

        public RegistrationController(IRepository da, IRegistrationFactory registrationFactory, ILogger logger)
        {
            if (da == null)
            {
                throw new ArgumentNullException("da");
            }
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }
            if (registrationFactory == null)
            {
                throw new ArgumentNullException("registrationFactory");
            }

            _da     = da;
            _logger = logger;
            _registrationFactory = registrationFactory;
        }
 public RegistrationApiController(IPersonGroupService personGroupService, IRegistrationFactory registrationFactory)
 {
     _personGroupService  = personGroupService;
     _registrationFactory = registrationFactory;
 }