Exemple #1
0
        public AccountManager(
            IDataAccessAuthorizer dataAuthorizer,
            IUserManager userManager,
            IContactDataManager contactManager,
            ICredentialManager credentialManager,
            ICooperativeManager cooperativeManager,
            IFarmerManager farmerManager,
            IUserIdentityManager userIdentityManager,
            IMultiFactorAuthenticator multiFactorAuthenticator,
            StoreProvider storeProvider)
        {
            ThrowNullArguments(
                () => dataAuthorizer,
                () => userManager,
                () => contactManager,
                () => credentialManager,
                () => cooperativeManager,
                () => farmerManager,
                () => userIdentityManager,
                () => multiFactorAuthenticator,
                () => storeProvider);

            _storeProvider        = storeProvider;
            _dataAccessAuthorizer = dataAuthorizer;
            _userManager          = userManager;
            _userIdentityManager  = userIdentityManager;
            _credentialManager    = credentialManager;
            _cooperativeManager   = cooperativeManager;
            _contactManager       = contactManager;
            _farmerManager        = farmerManager;
            _multiFactorAuth      = multiFactorAuthenticator;
        }
Exemple #2
0
 public Farm(IPointCreator pointCreator, IFarmerManager farmerManager,
             ITractorDriverManager tractorDriverManager, IVehicleManager vehicleManager)
 {
     _pointCreator         = pointCreator;
     _farmerManager        = farmerManager;
     _tractorDriverManager = tractorDriverManager;
     _vehicleManager       = vehicleManager;
 }