Пример #1
0
 public UsersService(IRepository <User> usersRepository, IRepository <Manager> managersRepository, IUnitOfWork unitOfWork, IUsersFactory usersFactory, IManagersFactory managerFactory)
 {
     this.usersRepository    = usersRepository;
     this.managersRepository = managersRepository;
     this.unitOfWork         = unitOfWork;
     this.usersFactory       = usersFactory;
     this.managerFactory     = managerFactory;
 }
Пример #2
0
 public CreateUserHandler(IVmsLogger <CreateUserHandler> logger, IUsersFactory factory, IAccountRepository accountRepository, IUserRepository userRepository, IServiceBusMessagePublisher publisher, IServicesRepository servicesRepository, IUserStatusRepository repository, IAccessRecordFactory recordFactory)
 {
     _logger             = logger;
     _factory            = factory;
     _accountRepository  = accountRepository;
     _userRepository     = userRepository;
     _publisher          = publisher;
     _servicesRepository = servicesRepository;
     _repository         = repository;
     _recordFactory      = recordFactory;
 }
        public RegisterViewModel(IUsersFactory usersFactory,
                                 IModelFactory modelFactory)
        {
            this.usersFactory = usersFactory;
            this.modelFactory = modelFactory;

            this.User            = this.modelFactory.CreateSimpleRegistrationUser();
            this.RegisterCommand = new RelayCommand <object>(Register);

            this.GetCurrencies();
        }
Пример #4
0
        public AccountController(IUsersService usersService, IUsersFactory usersFactory)
        {
            Guard.WhenArgument <IUsersService>(usersService, "Users service cannot be null.")
            .IsNull()
            .Throw();

            Guard.WhenArgument <IUsersFactory>(usersFactory, "Users factory cannot be null.")
            .IsNull()
            .Throw();

            this.usersService = usersService;
            this.usersFactory = usersFactory;
        }
Пример #5
0
        public SettingsController(IUsersManager usersManager, IUsersFactory usersFactory, IImageExtractor imageExtractor)
        {
            Guard.WhenArgument <IUsersManager>(usersManager, "Users manager cannot be null.")
            .IsNull()
            .Throw();

            Guard.WhenArgument <IUsersFactory>(usersFactory, "Users factory cannot be null.")
            .IsNull()
            .Throw();

            Guard.WhenArgument <IImageExtractor>(imageExtractor, "Image extractor cannot be null.")
            .IsNull()
            .Throw();

            this.usersManager   = usersManager as IManager;
            this.usersFactory   = usersFactory;
            this.imageExtractor = imageExtractor;
        }
Пример #6
0
 public UserAccountCreatedHandler(IVmsLogger <UserAccountCreatedHandler> logger, IAccountRepository accountRepository, IUsersFactory factory)
 {
     _logger            = logger;
     _accountRepository = accountRepository;
     _factory           = factory;
 }