public static NavigationManager NavigationManager(ISecurityManager securityManager = null, ISolarSystems solarSystems = null) { return new NavigationManager(securityManager ?? Mock.Of<ISecurityManager>(), Mock.Of<IConfigurationManager>(), solarSystems ?? Mock.Of<ISolarSystems>(), Mock.Of<IShips>(), Mock.Of<IJourneyRepository>(), Mock.Of<IUsers>()); }
public PlanetController(ISessionManager sessionManager, IPlanets planetRespository, ISolarSystems solarSystemRepository, IRaces races) { if (sessionManager == null) throw new ArgumentNullException(nameof(sessionManager)); if (solarSystemRepository == null) throw new ArgumentNullException(nameof(solarSystemRepository)); if (races == null) throw new ArgumentNullException(nameof(races)); if (planetRespository == null) throw new ArgumentNullException(nameof(planetRespository)); _sessionManager = sessionManager; _solarSystemRepository = solarSystemRepository; _races = races; _planetRespository = planetRespository; }
public RegistrationManager(ISecurityManager securityManager, IEmpireManager empireManager, IShips shipRepository, ISolarSystems solarSystemRepository) { if (securityManager == null) throw new ArgumentNullException("securityManager"); if (shipRepository == null) throw new ArgumentNullException("shipRepository"); if (solarSystemRepository == null) throw new ArgumentNullException("solarSystemRepository"); if (empireManager == null) throw new ArgumentNullException("empireManager"); _securityManager = securityManager; _shipRepository = shipRepository; _solarSystemRepository = solarSystemRepository; _empireManager = empireManager; }
public NavigationManager(ISecurityManager securityManager, IConfigurationManager configurationManager, ISolarSystems solarSystems, IShips ships, IJourneyRepository journeyRepository, IUsers userRepository) { if (securityManager == null) throw new ArgumentNullException("securityManager"); if (solarSystems == null) throw new ArgumentNullException("solarSystems"); if (ships == null) throw new ArgumentNullException("ships"); if (journeyRepository == null) throw new ArgumentNullException("journeyRepository"); if (configurationManager == null) throw new ArgumentNullException("configurationManager"); if (userRepository == null) throw new ArgumentNullException("userRepository"); _securityManager = securityManager; _solarSystems = solarSystems; _ships = ships; _journeyRepository = journeyRepository; _configurationManager = configurationManager; _userRepository = userRepository; }
public BuildShipRepository(ISolarSystems solarSystems) { if (solarSystems == null) throw new ArgumentNullException("solarSystems"); _solarSystems = solarSystems; }
public GalaxyManager(ISolarSystems solarSystems) { if (solarSystems == null) throw new ArgumentNullException("solarSystems"); _solarSystems = solarSystems; }