public AuthenticationService(IUserRepository userRepository, IDeviceRepository deviceRepository, IRefugeesUnitedService refugeesUnitedService) { if (userRepository == null) throw new ArgumentNullException("userRepository"); if (deviceRepository == null) throw new ArgumentNullException("deviceRepository"); if (refugeesUnitedService == null) throw new ArgumentNullException("refugeesUnitedService"); UserRepository = userRepository; DeviceRepository = deviceRepository; RefugeesUnitedService = refugeesUnitedService; }
public HomeController(ISessionService sessionService, IAuthenticationService authenticationService, IRefugeesUnitedService refugeesUnitedService) { if (sessionService == null) throw new ArgumentNullException("sessionService"); if (authenticationService == null) throw new ArgumentNullException("authenticationService"); if (refugeesUnitedService == null) throw new ArgumentNullException("refugeesUnitedService"); SessionService = sessionService; AuthenticationService = authenticationService; RefugeesUnitedService = refugeesUnitedService; }