コード例 #1
0
 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>());
 }
コード例 #2
0
ファイル: PlanetController.cs プロジェクト: ardliath/BigSpace
        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;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
        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;
        }
コード例 #5
0
 public BuildShipRepository(ISolarSystems solarSystems)
 {
     if (solarSystems == null) throw new ArgumentNullException("solarSystems");
     _solarSystems = solarSystems;
 }
コード例 #6
0
ファイル: GalaxyManager.cs プロジェクト: ardliath/BigSpace
 public GalaxyManager(ISolarSystems solarSystems)
 {
     if (solarSystems == null) throw new ArgumentNullException("solarSystems");
     _solarSystems = solarSystems;
 }