public MembershipController(IDomainObjectFactory factory, IEventAggregator eventAggregator, IEmailSender emailSender, IBlockedIPCollection blockedIPList)
        {
            Check.Argument.IsNotNull(factory, "factory");
            Check.Argument.IsNotNull(eventAggregator, "eventAggregator");
            Check.Argument.IsNotNull(emailSender, "emailSender");
            Check.Argument.IsNotNull(blockedIPList, "blockedIPList");

            _factory         = factory;
            _eventAggregator = eventAggregator;
            _emailSender     = emailSender;
            _blockedIPList   = blockedIPList;
        }
Example #2
0
        public MembershipController(IDomainObjectFactory factory, IUserScoreService userScoreService, IEmailSender emailSender, IBlockedIPCollection blockedIPList)
        {
            Check.Argument.IsNotNull(factory, "factory");
            Check.Argument.IsNotNull(userScoreService, "userScoreService");
            Check.Argument.IsNotNull(emailSender, "emailSender");
            Check.Argument.IsNotNull(blockedIPList, "blockedIPList");

            _factory          = factory;
            _userScoreService = userScoreService;
            _emailSender      = emailSender;
            _blockedIPList    = blockedIPList;
        }