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 ...