Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 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);
        }
Exemplo n.º 5
0
        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));
        }
Exemplo n.º 6
0
        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;
        }
Exemplo n.º 7
0
 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;
 }
Exemplo n.º 10
0
        public TrackController(ITracksService tracks)
        {
            Guard.WhenArgument(tracks, nameof(tracks)).IsNull().Throw();

            this.tracks = tracks;
        }
Exemplo n.º 11
0
 public TracksController(ITracksService tracksService)
 {
     _tracksService = tracksService;
 }
Exemplo n.º 12
0
 public TracksController(ITracksService service)
 {
     this.service = service;
 }
Exemplo n.º 13
0
 public TrackMenuViewComponent(ITracksService tracksService, IMapper mapper)
 {
     this.tracksService = tracksService;
     this.mapper        = mapper;
 }
Exemplo n.º 14
0
 public HomeController(ITracksService tracks, ICategoriesService categories, IMappingProvider mapper)
 {
     this.tracks     = tracks;
     this.categories = categories;
     this.mapper     = mapper;
 }
Exemplo n.º 15
0
 public TracksController(ITracksService trackService)
 {
     this.trackService = trackService;
 }
Exemplo n.º 16
0
 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 TracksController(ITracksService tracks)
 {
     this.tracks = tracks;
 }
 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 TrackVotesController(ITrackVotesService votes, ITracksService tracks)
 {
     this.votes = votes;
     this.tracks = tracks;
 }
Exemplo n.º 23
0
 public TracksController(ITracksService tracksService, IMapper mapper)
 {
     this.tracksService = tracksService;
     this.mapper        = mapper;
 }