public NotesController(IUrlLocationHelper locationHelper, ICreationService creationService, IUpdateService updateService, INotesRepository notesRepository, IRetrievalService retrievalService) { _locationHelper = locationHelper; _creationService = creationService; _updateService = updateService; _notesRepository = notesRepository; _retrievalService = retrievalService; }
public void SetUp() { var mockedRepository = MockNotesRepository(); var mockedDateWrapper = MockDateWrapper(); var mockedGuidWrapper = MockGuidWrapper(); _creationService = new CreationService(mockedDateWrapper, mockedRepository, mockedGuidWrapper); }
public CreationServiceTests() { _game = new Game { Matrix = new Matrix(3) }; var neighboringCellsMarker = new NeighboringCellsMarker(_game); _creationService = new CreationService(_game, neighboringCellsMarker); }
public BattleServiceTests() { var game = new Game { Matrix = new Matrix(3) }; var neighboringCellsMarker = new NeighboringCellsMarker(game); _creationService = new CreationService(game, neighboringCellsMarker); _battleService = new BattleService(game); }
public JourneyController( ILogger <JourneyController> logger, ICreationService creationService, IValidationService validationService, IRetrievalService retrievalService) { _logger = logger; _creationService = creationService; _validationService = validationService; _retrievalService = retrievalService; }
public BattleController(IStatisticsService statisticsService, IBattleService battleService, ICreationService creationService, ICoordinatesParser coordinatesParser, IGameLifetimeService gameLifetimeService, Game game) { _statisticsService = statisticsService; _battleService = battleService; _creationService = creationService; _coordinatesParser = coordinatesParser; _gameLifetimeService = gameLifetimeService; _game = game; }
public CreateController( ICreationService createService, IArtistService artistService, IAlbumService albumService, IGenreService genreService) { Guard.WhenArgument(createService, "createService").IsNull().Throw(); Guard.WhenArgument(artistService, "artistService").IsNull().Throw(); Guard.WhenArgument(albumService, "albumService").IsNull().Throw(); Guard.WhenArgument(genreService, "genreService").IsNull().Throw(); this.createService = createService; this.artistService = artistService; this.albumService = albumService; this.genreService = genreService; }