public SetScoreCommandHandler( IScoreRepository scoreRepository, ICurrentSongRepository currentSongRepository ) { _scoreRepository = scoreRepository; _currentSongRepository = currentSongRepository; }
public FinishSongCommandHandler( ICurrentSongRepository currentSongRepository, ISongRepository songRepository ) { _currentSongRepository = currentSongRepository; _songRepository = songRepository; }
public void Setup() { _currentSongRepository = Substitute.For <ICurrentSongRepository>(); _clock = Substitute.For <IClock>(); _clock.UtcNow.Returns(new DateTime(2022, 2, 22, 2, 22, 0, DateTimeKind.Utc)); _currentSongService = new CurrentSongService(_currentSongRepository, _clock); }
public StartSongCommandHandler( ISongRepository songRepository, IUserRepository userRepository, ICurrentSongRepository currentSongRepository ) { _songRepository = songRepository; _userRepository = userRepository; _currentSongRepository = currentSongRepository; }
public EndSessionCommandHandler( ISessionRepository sessionRepository, ISongRepository songRepository, ICurrentSongRepository currentSongRepository, IScoreRepository scoreRepository ) { _sessionRepository = sessionRepository; _songRepository = songRepository; _currentSongRepository = currentSongRepository; _scoreRepository = scoreRepository; }
public GetStateQueryHandler(ICurrentSongRepository currentSongRepository, ISongRepository songRepository) { _currentSongRepository = currentSongRepository; _songRepository = songRepository; }
public CurrentSongService(ICurrentSongRepository currentSongRepository, IClock clock) { _currentSongRepository = currentSongRepository; _clock = clock; }
public GetCurrentSongQueryHandler(ICurrentSongRepository currentSongRepository) { _currentSongRepository = currentSongRepository; }
public PlaybackController(ICurrentSongRepository currentSongRepository, IMapper mapper) { _currentSongRepository = currentSongRepository; _mapper = mapper; }