예제 #1
0
 /// <summary>
 /// Initializes a new instance of <see cref="GameController"/> class.
 /// </summary>
 public GameController(ISeeBattleGameService seeBattleGameService, IApplicationMapper applicationMapper, IContractMapper contractMapper)
 {
     //TODO Transfer mappers to ready-made libraries like AatoMapper
     _seeBattleGameService = seeBattleGameService.NotNull(nameof(seeBattleGameService));
     _applicationMapper    = applicationMapper.NotNull(nameof(applicationMapper));
     _contractMapper       = contractMapper.NotNull(nameof(contractMapper));
 }
 public SeaBattleGameValidationService(ISeeBattleGameService service, IValidationService validationService)
 {
     _service           = service.NotNull(nameof(service));
     _validationService = validationService.NotNull(nameof(validationService));
 }