コード例 #1
0
        public async Task NotNotifyWhenBelowMinimumViewers(
            [Frozen] ISettingsHandler settingsHandler,
            [Frozen] INotificationHandler notificationHandler,
            [Frozen] IEnumerable <IApiClient> apiClients,
            [Frozen] List <LivestreamQueryResult> livestreamQueryResults,
            PopularLivestreamWatcher sut)
        {
            var apiClient = apiClients.First();

            SetupApiClient(apiClient, livestreamQueryResults);
            settingsHandler.Settings.MinimumEventViewers = 2000;

            await sut.NotifyPopularStreams();

            notificationHandler.DidNotReceive().AddNotification(Arg.Any <LivestreamNotification>());
        }