public RaceController(ITracksService tracksService, IPlayersService playersService, IBikesService bikesService, IAttemptsService attemptsService, IMapper mapper) { this.tracksService = tracksService; this.playersService = playersService; this.bikesService = bikesService; this.attemptsService = attemptsService; this.mapper = mapper; }
public CategoryController(ITracksService tracks, ICacheService cache) { Guard.WhenArgument(tracks, nameof(tracks)).IsNull().Throw(); Guard.WhenArgument(cache, nameof(cache)).IsNull().Throw(); this.tracks = tracks; this.cache = cache; }
public HomeController(IPartsService partsService, ITracksService tracksService, IWaresService waresService, IPlayersService playersService, IAttemptsService attemptsService, IMapper mapper) { this.partsService = partsService; this.tracksService = tracksService; this.waresService = waresService; this.playersService = playersService; this.attemptsService = attemptsService; this.mapper = mapper; }
public ConsoleClient() { var userRepository = new UserRepositoryInMemory(); var trackRepository = new TrackRepositoryInMemory(); var eventRepository = new EventRepositoryInMemory(); _userService = new UserService(userRepository); _tracksService = new TracksService(trackRepository, eventRepository); _eventService = new EventService(eventRepository, trackRepository); }
public void ThrowsArgumentNullException_WhenTracksService_IsNull() { // Arrange ITracksService tracksService = null; var challengesServiceFake = new Mock <IChallengesService>(); var mapperFake = new Mock <IMappingProvider>(); var fileSystemFake = new Mock <IFileSystemService>(); var fileUtilsFake = new Mock <IFileUnits>(); // Act & Assert Assert.Throws <ArgumentNullException>(() => new ChallengeController( tracksService, challengesServiceFake.Object, fileSystemFake.Object, mapperFake.Object, fileUtilsFake.Object)); }
public ChallengeController( ITracksService tracks, IChallengesService challenges, IFileSystemService fileSystem, IMappingProvider mapper, IFileUnits fileUtils) { Guard.WhenArgument(tracks, nameof(tracks)).IsNull().Throw(); Guard.WhenArgument(mapper, nameof(mapper)).IsNull().Throw(); Guard.WhenArgument(challenges, nameof(challenges)).IsNull().Throw(); Guard.WhenArgument(fileSystem, nameof(fileSystem)).IsNull().Throw(); Guard.WhenArgument(fileUtils, nameof(fileUtils)).IsNull().Throw(); this.tracks = tracks; this.mapper = mapper; this.challenges = challenges; this.fileSystem = fileSystem; this.fileUtils = fileUtils; }
public TracksController(IRunesDbContext db, ITracksService tracksService) { this.db = db; this.tracksService = tracksService; }
public TracksController(ITracksService tracks) { this.tracks = tracks; }
public TrackController(ITracksService trackService, IMapper mapper) { _trackService = trackService; _mapper = mapper; }
public TrackController(ITracksService tracks) { Guard.WhenArgument(tracks, nameof(tracks)).IsNull().Throw(); this.tracks = tracks; }
public TracksController(ITracksService tracksService) { _tracksService = tracksService; }
public TracksController(ITracksService service) { this.service = service; }
public TrackMenuViewComponent(ITracksService tracksService, IMapper mapper) { this.tracksService = tracksService; this.mapper = mapper; }
public HomeController(ITracksService tracks, ICategoriesService categories, IMappingProvider mapper) { this.tracks = tracks; this.categories = categories; this.mapper = mapper; }
public TracksController(ITracksService trackService) { this.trackService = trackService; }
public ProcessTracksJob(ITracksService tracksService, etc.) { _tracksService = tracksService;
public AlbumsController(IAlbumsService albumsService, ITracksService tracksService) { this.albumsService = albumsService; this.tracksService = tracksService; }
public TracksPopulator(ITracksService tracks, ICacheService cache) { this.tracks = tracks; this.cache = cache; }
public TrackVotesController(ITrackVotesService votes, ITracksService tracks) { this.votes = votes; this.tracks = tracks; }
public TracksController(ITracksService tracks, IImagesService images, IProcessImageHelper processImageHelper) { this.tracks = tracks; this.processImageHelper = processImageHelper; this.images = images; }
public TracksController(ITracksService tracksService, IMapper mapper) { this.tracksService = tracksService; this.mapper = mapper; }