The ScoreTweet function - updating an entity

Since the method code is quite lengthy, we will explain it in the following sections.

Using statements and test class and method definitions are in the following first code snippet:

    using Microsoft.VisualStudio.TestTools.UnitTesting;    using TextEvaluation;    using Microsoft.Azure.ApiHub;    using Moq;    using Newtonsoft.Json.Linq;    using System.Net.Http;    using System.Collections.Generic;    using System.Threading;    using System.Threading.Tasks;    using System.Diagnostics;   using Microsoft.Azure.WebJobs.Host;   namespace TextEvaluation_Tests    {     [TestClass()]     public class ScoreTweet_Tests     {       [TestMethod()]       public async Task ScoreTweet_ExistingTweet_UpdatedEntity()       {

The "arrange" section of the test will consist of ...

Get Serverless computing in Azure with .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.