public UpdateTests(TestHost testHost) { _generateUpdateStreamService = testHost.GetService <GenerateUpdateStreamService>(); _testOptions = testHost.GetService <IOptions <TestOptions> >().Value; _spotifyClientFactory = testHost.GetService <ISpotifyClientFactory>(); _spotifyClientService = testHost.GetService <ISpotifyClientService>(); _trackRepository = testHost.GetService <ITrackRepository>(); _playlistRepository = testHost.GetService <IPlaylistRepository>(); _chatRepository = testHost.GetService <IChatRepository>(); _chatMemberRepository = testHost.GetService <IChatMemberRepository>(); _userRepository = testHost.GetService <IUserRepository>(); _voteRepository = testHost.GetService <IVoteRepository>(); _voteTextHelper = testHost.GetService <IVoteTextHelper>(); _loginRequestRepository = testHost.GetService <ILoginRequestRepository>(); _sendMessageService = testHost.GetService <ISendMessageService>(); _spotifyLinkHelper = testHost.GetService <ISpotifyLinkHelper>(); var handleMessageService = testHost.GetService <IHandleMessageService>(); var handleCallbackQueryService = testHost.GetService <IHandleCallbackQueryService>(); var handleInlineQueryService = testHost.GetService <IHandleInlineQueryService>(); var commandsService = testHost.GetService <ICommandsService>(); var updateDtoService = testHost.GetService <IUpdateDtoService>(); var sentryOptions = testHost.GetService <IOptions <SentryOptions> >(); _sut = new Update(handleMessageService, handleCallbackQueryService, handleInlineQueryService, commandsService, updateDtoService, sentryOptions); }
public VoteService( ISendMessageService sendMessageService, IKeyboardService keyboardService, IVoteTextHelper voteTextHelper, IVoteRepository voteRepository, IRemoveTrackService removeTrackService) { _sendMessageService = sendMessageService; _keyboardService = keyboardService; _voteTextHelper = voteTextHelper; _voteRepository = voteRepository; _removeTrackService = removeTrackService; }