Exemplo n.º 1
0
        private static void Initilize()
        {
            IKernel kernel = new StandardKernel();

            kernel.Load(Assembly.GetExecutingAssembly());
            _battleshipService = kernel.Get <IBattleshipService>();
            _players           = _battleshipService.GetPlayers();
        }
 //DI to access the service actions.
 public BattleshipController(ILogger <BattleshipController> logger, IBattleshipService battleshipService, Response response)
 {
     this.logger            = logger;
     this.battleshipService = battleshipService;
     this.response          = response;
 }
Exemplo n.º 3
0
 public BattleshipStateTrackerController(IBattleshipService battleshipService)
 {
     _battleshipService = battleshipService;
 }
 public BattleshipController(IBattleshipService boardService)
 {
     _boardService = boardService;
 }