Пример #1
0
        public async Task SendProjectDailySummaryWithAllBlockedAsync() {
            var user = UserData.GenerateSampleUser();
            var project = ProjectData.GenerateSampleProject();
            var mostFrequent = StackData.GenerateStacks(3, generateId: true, type: Event.KnownTypes.Error);

            await _mailer.SendProjectDailySummaryAsync(user, project, mostFrequent, null, SystemClock.UtcNow.Date, true, 123456, 1, 0, 1, 123456, 0, false);
            await RunMailJobAsync();
        }
Пример #2
0
        public async Task SendProjectDailySummaryWithFreeProjectAsync() {
            var user = UserData.GenerateSampleUser();
            var project = ProjectData.GenerateSampleProject();
            var mostFrequent = StackData.GenerateStacks(3, generateId: true, type: Event.KnownTypes.Error);
            var newest = StackData.GenerateStacks(1, generateId: true, type: Event.KnownTypes.Error);

            await _mailer.SendProjectDailySummaryAsync(user, project, mostFrequent, newest, SystemClock.UtcNow.Date, true, 12, 1, 1, 2, 0, 0, true);
            await RunMailJobAsync();
        }