Exemplo n.º 1
0
 public MonsterController(IMonsterService service, ILogger <MonsterController> logger, IMapper mapper, IMemoryCache memoryCache)
 {
     _service     = service;
     _logger      = logger;
     _mapper      = mapper;
     _memoryCache = memoryCache;
 }
Exemplo n.º 2
0
 public FightService(
     IHeroService heroService,
     IHealthService healthService,
     IResourcePouchService resourcePouchService,
     IChronometerService chronometerService,
     ILevelService levelService,
     IStatisticsService statisticsService,
     IMonsterService monsterService,
     INotificationService notificationService,
     IEquipmentService equipmentService,
     IAmuletBagService amuletBagService,
     FarmHeroesDbContext context,
     IMapper mapper)
 {
     this.heroService          = heroService;
     this.healthService        = healthService;
     this.resourcePouchService = resourcePouchService;
     this.chronometerService   = chronometerService;
     this.levelService         = levelService;
     this.statisticsService    = statisticsService;
     this.monsterService       = monsterService;
     this.notificationService  = notificationService;
     this.equipmentService     = equipmentService;
     this.amuletBagService     = amuletBagService;
     this.context = context;
     this.mapper  = mapper;
 }
        public IHttpActionResult GetMonstertByID(int id)
        {
            _monsterService = GetMonsterService();
            var monster = _monsterService.FindBy(id);

            return(Ok(monster));
        }
 public MonsterController(
     IMonsterService monsterService,
     IMapper mapper
     )
 {
     _monsterService = monsterService;
     _mapper         = mapper;
 }
Exemplo n.º 5
0
 public CombatService(IEventDispatcher eventDispatcher, ISlackWebApi slack, IStatsRepository statsRepository, IUserService userService, IChannelRepository channelRepository, ISpawnedMonsterRepository spawnedMonsterRepository, IMonsterService monsterService)
 {
     _eventDispatcher          = eventDispatcher;
     _slack                    = slack;
     _statsRepository          = statsRepository;
     _userService              = userService;
     _channelRepository        = channelRepository;
     _spawnedMonsterRepository = spawnedMonsterRepository;
     _monsterService           = monsterService;
 }
        public IHttpActionResult GetMonterByNameSource([FromBody] MonsterSearchCriteria criteria)
        {
            _monsterService = GetMonsterService();
            if (criteria.altname == null)
            {
                criteria.altname = string.Empty;
            }
            var monster = _monsterService.GetByNameSource(criteria.name, criteria.source, criteria.altname);

            return(Ok(monster));
        }
        public IHttpActionResult AddMonster([FromBody] monster monster)
        {
            if (monster == null)
            {
                return(Ok("Monster Empty"));
            }

            _monsterService = GetMonsterService();
            IEnumerable <string> Error = _monsterService.AddMonster(monster);

            return(Ok(Error));
        }
 public ChangeNotifierHub(
     IHubGroupUtil hubGroupUtil,
     ICharacterService characterService,
     IGroupService groupService,
     ILootService lootService,
     IMonsterService monsterService
     )
 {
     _hubGroupUtil     = hubGroupUtil;
     _characterService = characterService;
     _groupService     = groupService;
     _lootService      = lootService;
     _monsterService   = monsterService;
 }
Exemplo n.º 9
0
 public GroupsController(
     IGroupService groupService,
     ILootService lootService,
     IMonsterService monsterService,
     IEventService eventService,
     IMapper mapper,
     INpcService npcService
     )
 {
     _groupService   = groupService;
     _lootService    = lootService;
     _monsterService = monsterService;
     _eventService   = eventService;
     _mapper         = mapper;
     _npcService     = npcService;
 }
Exemplo n.º 10
0
        public void SetUp()
        {
            _groupService   = Substitute.For <IGroupService>();
            _lootService    = Substitute.For <ILootService>();
            _monsterService = Substitute.For <IMonsterService>();
            _eventService   = Substitute.For <IEventService>();
            _mapper         = Substitute.For <IMapper>();
            _npcService     = Substitute.For <INpcService>();

            _controller = new GroupsController(
                _groupService,
                _lootService,
                _monsterService,
                _eventService,
                _mapper,
                _npcService
                );

            _executionContext = new NaheulbookExecutionContext();
        }
 public MonsterCsvImportService(IMonsterLevelService monsterLevelService, IMonsterService monsterService)
 {
     _monsterLevelService = monsterLevelService;
     _monsterService = monsterService;
 }
Exemplo n.º 12
0
 public MonsterController(IMonsterService monsterService)
 {
     _monsterService = monsterService;
 }
Exemplo n.º 13
0
 public CombatFacade(IUnitOfWorkProvider unitOfWorkProvider, ICharacterService characterService, IMonsterService monsterService) : base(unitOfWorkProvider)
 {
     _characterService = characterService;
     _monsterService   = monsterService;
 }
Exemplo n.º 14
0
 public MonsterFacade(IUnitOfWorkProvider unitOfWorkProvider, IMonsterService monsterService, IAttributesService attributesService) : base(unitOfWorkProvider)
 {
     _monsterService    = monsterService;
     _attributesService = attributesService;
 }
Exemplo n.º 15
0
 public HomeController()
 {
     _monsterService = new MonsterService();
 }
Exemplo n.º 16
0
 public MonsterController(IMonsterRepository repo, IMonsterService service, ILogger <MonsterController> logger)
 {
     _repo    = repo;
     _service = service;
     _logger  = logger;
 }
Exemplo n.º 17
0
 public MonsterController(IMonsterService monsterService, ILogger <MonsterController> logger)
 {
     _MonsterService = monsterService;
     _logger         = logger;
 }
Exemplo n.º 18
0
 public MonsterController(IMonsterService monsterService)
 {
     _monsterService = monsterService;
 }
Exemplo n.º 19
0
 public MonstersController(IMonsterService monsterService)
 {
     this.monsterService = monsterService;
 }
Exemplo n.º 20
0
 public MockEncounterService(IMonsterService monsterService, IBattleService battleService)
 {
     _monsterService = monsterService;
     _battleService  = battleService;
     CreateMockData();
 }
Exemplo n.º 21
0
 public MockUserService(IMonsterService monsterService)
 {
     _monsterService = monsterService;
     CreateMockData();
 }
Exemplo n.º 22
0
 public HomeController(IMonsterService productService)
 {
     _productService = productService;
 }