/// <summary>
 /// Initializes a new instance of the FacebookController class.
 /// </summary>
 public FacebookController()
 {
     _facebookGraph = DependancyInjection.Instance.Resolve<IFacebookGraph>();
     _userRetriever = DependancyInjection.Instance.Resolve<IUserRetriever>();
     _userCreationService = DependancyInjection.Instance.Resolve<IUserCreationService>();
     _hotZoneRetriever = DependancyInjection.Instance.Resolve<IHotZoneRetriever>();
 }
 public void TestInitialize()
 {
     _hotZonesIds = new List<Guid>();
     _zombiePackIds = new List<Guid>();
     _userIds = new List<Guid>();
     _hotZoneRetriever = DalTestContextSpecification.Instance.Resolve<IHotZoneRetriever>();
 }
 public UserCreationService(IUserRetriever userRetriever, IUserSaver userSaver, IUserItemSaver userItemSaver, ISafeHouseItemSaver safeHouseItemSaver, IHotZoneRetriever hotZoneRetriever, IUserCountsSaver userCountsSaver)
 {
     _userRetriever = userRetriever;
     _userSaver = userSaver;
     _userItemSaver = userItemSaver;
     _safeHouseItemSaver = safeHouseItemSaver;
     _hotZoneRetriever = hotZoneRetriever;
     _userCountsSaver = userCountsSaver;
 }
Пример #4
0
        private static void ResolveDI()
        {
            _nodeCreator = UndeadEarth.Console.DependancyInjection.Instance.Resolve<INodeCreator>();
            _hotZoneRetriever = UndeadEarth.Controllers.DependancyInjection.Instance.Resolve<IHotZoneRetriever>();
            _userCreationService = UndeadEarth.Controllers.DependancyInjection.Instance.Resolve<IUserCreationService>();
            _userRetriever = UndeadEarth.Controllers.DependancyInjection.Instance.Resolve<IUserRetriever>();
            _userMover = UndeadEarth.Controllers.DependancyInjection.Instance.Resolve<IUserMoveDirector>();
            _userSaver = UndeadEarth.Controllers.DependancyInjection.Instance.Resolve<IUserSaver>();
            _userEnergyProvider = UndeadEarth.Controllers.DependancyInjection.Instance.Resolve<IUserEnergyProvider>();
            _huntDirector = UndeadEarth.Controllers.DependancyInjection.Instance.Resolve<IHuntDirector>();
            _zombiePackRetriever = UndeadEarth.Controllers.DependancyInjection.Instance.Resolve<IZombiePackRetriever>();
            _userZombiePackProgressRetriever = UndeadEarth.Controllers.DependancyInjection.Instance.Resolve<IUserZombiePackProgressRetriever>();
            _userStatsRetriever = UndeadEarth.Controllers.DependancyInjection.Instance.Resolve<IUserStatsRetriever>();

        }
        public UsersController()
        {
            _zombiePackRetriever = MvcApplication.DependancyInjection.Resolve<IZombiePackRetriever>();
            _hotZoneRetriever = MvcApplication.DependancyInjection.Resolve<IHotZoneRetriever>();
            _userRetriever = MvcApplication.DependancyInjection.Resolve<IUserRetriever>();
            _userSaver = MvcApplication.DependancyInjection.Resolve<IUserSaver>();
            _userHotZoneProgressRetriever = MvcApplication.DependancyInjection.Resolve<IUserZombiePackProgressRetriever>();
            _userItemRetriever = MvcApplication.DependancyInjection.Resolve<IUserItemRetriever>();

            _distanceCalculator = MvcApplication.DependancyInjection.Resolve<IDistanceCalculator>();
            _userEnergyProvider = MvcApplication.DependancyInjection.Resolve<IUserEnergyProvider>();
            _userMover = MvcApplication.DependancyInjection.Resolve<IUserMoveDirector>();
            _shopDirector = MvcApplication.DependancyInjection.Resolve<IShopDirector>();
            _userAttackPowerProvider = MvcApplication.DependancyInjection.Resolve<IUserAttackPowerProvider>();
            _userSightRadiusProvider = MvcApplication.DependancyInjection.Resolve<IUserSightRadiusProvider>();
            _itemUsageDirector = MvcApplication.DependancyInjection.Resolve<IItemUsageDirector>();
            _achievementProvider = MvcApplication.DependancyInjection.Resolve<IAchievementProvider>();
            _userLevelService = MvcApplication.DependancyInjection.Resolve<IUserLevelService>();
            _userCountsRetriever = MvcApplication.DependancyInjection.Resolve<IUserCountsRetriever>();
        }
 public HuntDirector(IUserRetriever userRetriever,
     IZombiePackRetriever zombiePackRetriever,
     IUserEnergyProvider userEnergyProvider,
     IUserSaver userSaver,
     IUserZombiePackProgressSaver userZombiePackProgressSaver,
     IUserAttackPowerProvider userAttackPowerProvider,
     IZombiePackDifficultyDirector zombiePackDifficultyDirector,
     IRandomNumberProvider randomNumberProvider,
     IUserLevelService userLevelService,
     IUserCountsSaver userCountsSaver,
     IHotZoneRetriever hotZoneRetriever)
 {
     _userRetriever = userRetriever;
     _zombiePackRetriever = zombiePackRetriever;
     _userEnergyProvider = userEnergyProvider;
     _userSaver = userSaver;
     _userZombiePackProgressSaver = userZombiePackProgressSaver;
     _userAttackPowerProvider = userAttackPowerProvider;
     _zombiePackDifficultyDirector = zombiePackDifficultyDirector;
     _randomNumberProvider = randomNumberProvider;
     _userLevelService = userLevelService;
     _userCountsSaver = userCountsSaver;
     _hotZoneRetriever = hotZoneRetriever;
 }
 public HotZonesController()
 {
     _hotZoneRetriever = DependancyInjection.Instance.Resolve<IHotZoneRetriever>();
 }
 public HotZonesController()
 {
     _hotZoneRetriever = MvcApplication.DependancyInjection.Resolve<IHotZoneRetriever>();
 }