Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public ApplicationAttachAction(
     ILogger logger,
     IApplicationMapper applicationMapper,
     ApplicationFactory applicationFactory)
 {
     this.logger             = logger;
     this.applicationMapper  = applicationMapper;
     this.applicationFactory = applicationFactory;
 }
Ejemplo n.º 3
0
 public ApplicationService(
     IStorageService storageService,
     IApplicationMapper applicationMapper,
     IApplicationRepository applicationRepository,
     IUnitOfWork unitOfWork)
 {
     this.storageService        = storageService;
     this.applicationMapper     = applicationMapper;
     this.applicationRepository = applicationRepository;
     this.unitOfWork            = unitOfWork;
 }
 public ApplicationService(IRepository repository, IApplicationMapper mapper)
 {
     _repository = repository;
     _mapper     = mapper;
 }