From 36fcb5897a8d275f069b1a461e22be843e6cf52d Mon Sep 17 00:00:00 2001
From: Praven Kuttappan <55455725+praveenkuttappan@users.noreply.github.com>
Date: Thu, 16 Feb 2023 12:16:19 -0500
Subject: [PATCH] APIView changes to send emails using logic app service
(#5408)
* APIView changes to send emails using logic app service
---
.../APIViewIntegrationTests.csproj | 1 -
.../TestsBaseFixture.cs | 10 +-
.../APIViewUnitTests/APIViewUnitTests.csproj | 4 +-
.../APIView/APIViewWeb/APIViewWeb.csproj | 6 +-
.../Controllers/CommentsController.cs | 1 -
.../APIViewWeb/Managers/CommentsManager.cs | 10 +-
.../Managers/INotificationManager.cs | 2 +-
.../Managers/NotificationManager.cs | 187 +++++++++---------
.../APIView/APIViewWeb/Models/CommentModel.cs | 4 +-
.../APIViewWeb/Models/CommentThreadModel.cs | 4 +-
.../APIView/APIViewWeb/Models/EmailModel.cs | 25 +++
.../APIView/APIViewWeb/Models/GithubUser.cs | 4 +-
.../APIViewWeb/Models/OpenSourceUserInfo.cs | 2 +
.../APIViewWeb/Models/PackageGroupMdel.cs | 4 +-
.../APIView/APIViewWeb/Models/PackageModel.cs | 4 +-
.../APIViewWeb/Models/ReviewDisplayModel.cs | 4 +-
.../Models/ReviewGenPipelineParamModel.cs | 2 +
.../APIView/APIViewWeb/Models/ReviewType.cs | 2 -
.../APIViewWeb/Models/ServiceGroupModel.cs | 4 +-
.../APIViewWeb/Models/UsageSampleModel.cs | 4 +-
.../APIViewWeb/Models/UserPreferenceModel.cs | 2 +
.../APIViewWeb/Models/UserProfileModel.cs | 2 +
22 files changed, 161 insertions(+), 127 deletions(-)
create mode 100644 src/dotnet/APIView/APIViewWeb/Models/EmailModel.cs
diff --git a/src/dotnet/APIView/APIViewIntegrationTests/APIViewIntegrationTests.csproj b/src/dotnet/APIView/APIViewIntegrationTests/APIViewIntegrationTests.csproj
index 3d1a332b3e4..3e763401d35 100644
--- a/src/dotnet/APIView/APIViewIntegrationTests/APIViewIntegrationTests.csproj
+++ b/src/dotnet/APIView/APIViewIntegrationTests/APIViewIntegrationTests.csproj
@@ -19,7 +19,6 @@
-
all
diff --git a/src/dotnet/APIView/APIViewIntegrationTests/TestsBaseFixture.cs b/src/dotnet/APIView/APIViewIntegrationTests/TestsBaseFixture.cs
index 39f75cff0ad..49ad8d37c9c 100644
--- a/src/dotnet/APIView/APIViewIntegrationTests/TestsBaseFixture.cs
+++ b/src/dotnet/APIView/APIViewIntegrationTests/TestsBaseFixture.cs
@@ -11,12 +11,8 @@
using Microsoft.AspNetCore.Authorization;
using Moq;
using System.IO;
-using System.Net;
using System.Threading.Tasks;
using System.Security.Claims;
-using SendGrid;
-using SendGrid.Helpers.Mail;
-using System.Threading;
using Azure.Storage.Blobs.Models;
using APIView.Identity;
using APIViewWeb.Managers;
@@ -83,11 +79,7 @@ public TestsBaseFixture()
authorizationServiceMoq.Setup(_ => _.AuthorizeAsync(It.IsAny(), It.IsAny