public async Task NotifyWhenStreamAboveMinimumViewers( int minimumViewers, int expectedNotificationCount, [Frozen] ISettingsHandler settingsHandler, [Frozen] INotificationHandler notificationHandler, [Frozen] List <IApiClient> apiClients, [Frozen] List <LivestreamQueryResult> livestreamQueryResults, PopularLivestreamWatcher sut) { var apiClient = apiClients.First(); SetupApiClient(apiClient, livestreamQueryResults); settingsHandler.Settings.MinimumEventViewers = minimumViewers; await sut.NotifyPopularStreams(); notificationHandler.Received(expectedNotificationCount).AddNotification(Arg.Any <LivestreamNotification>()); }