public CreateAccountViewModel(ILoggerFacade logger, IEventAggregator eventAggregator, ICurrencyService currencyService, IAccountTypeService accountTypeService, IEmailTypeService emailTypeService, IGenderService genderService, ICountryService countryService, ICityService cityService) : base(logger, eventAggregator) { Requires.NotNull(currencyService, "currencyService"); Requires.NotNull(accountTypeService, "accountTypeService"); Requires.NotNull(accountTypeService, "emailTypeService"); Requires.NotNull(genderService, "genderService"); Requires.NotNull(countryService, "countryService"); Requires.NotNull(cityService, "cityService"); _currencyService = currencyService; _accountTypeService = accountTypeService; _emailTypeService = emailTypeService; _genderService = genderService; _countryService = countryService; _cityService = cityService; _lazyLoadedCommand = new Lazy<ICommand>(() => new DelegateCommand(OnLoaded)); _lazyApplyCommand = new Lazy<ICommand>(() => new DelegateCommand(OnApply, CanApply)); _account = new CreateAccountModel(); }
public EmailTypesController(ILogger logger, IUnitOfWork unitOfWork, IEmailTypeService emailTypeService) : base(logger, unitOfWork) { Requires.NotNull(emailTypeService, "emailTypeService"); _emailTypeService = emailTypeService; }