public ReturnTokenGenerator(IRepository <int, OfferedObject> objectsRepo, IRepository <Guid, ObjectReceiving> receivingsRepo, IRepository <Guid, ObjectRegistration> registrationsRepo, ITransactionTokenManager tokenManager, CurrentUserCredentialsGetter credentialsGetter, OwnershipAuthorization <Guid, ObjectRegistration> authorizer) { _objectsRepo = objectsRepo; _receivingsRepo = receivingsRepo; _registrationsRepo = registrationsRepo; _tokenManager = tokenManager; _credentialsGetter = credentialsGetter; _authorizer = authorizer; }
public RegistrationTokenRefresher(IRepository <int, OfferedObject> objectsRepo, IRepository <Guid, ObjectRegistration> registrationsRepo, ITransactionTokenManager tokenManager, CurrentUserCredentialsGetter credentialsGetter) { _objectsRepo = objectsRepo; _tokenManager = tokenManager; _credentialsGetter = credentialsGetter; _registrationsRepo = registrationsRepo; }
public NewRegistrationAdder(UserDataManager userDataManager, ObjectDataManager objectDataManager, IRepository <Guid, ObjectRegistration> registrationsRepo, IRepository <Guid, ObjectReceiving> receivingsRepo, IEventBus eventBus, ITransactionTokenManager tokenManager, IConfiguration configuration) { _userDataManager = userDataManager; _registrationsRepo = registrationsRepo; _objectReceiving = receivingsRepo; _objectDataManager = objectDataManager; _eventBus = eventBus; _tokenManager = tokenManager; _configurations = configuration; maximumHoursForFreeLending = _configurations.GetValue <int>("Registration:MaximumHoursForFreeLending"); maximumHoursForReservationExpiration = _configurations.GetValue <int>("Registration:MaximumHoursForRegistrationExpiration"); }
public RegistrationsController( IUserDataManager userDataManager, IRepository <Guid, ObjectRegistration> registrationsRepo, ObjectDataManager objectDataManager, IRepository <Guid, ObjectReceiving> objectReceiving, IEventBus eventBus, ITransactionTokenManager tokenManager, int maximumHoursForFreeLending, int maximumHoursForReservationExpiration, CurrentUserCredentialsGetter credentialsGetter, OwnershipAuthorization <Guid, ObjectRegistration> ownershipAuth) { _userDataManager = userDataManager; _registrationsRepo = registrationsRepo; _objectDataManager = objectDataManager; _objectReceiving = objectReceiving; _eventBus = eventBus; _tokenManager = tokenManager; this.maximumHoursForFreeLending = maximumHoursForFreeLending; this.maximumHoursForReservationExpiration = maximumHoursForReservationExpiration; _credentialsGetter = credentialsGetter; _ownershipAuth = ownershipAuth; }