public void TestListNotes() { var orderId = "123"; using (var server = new HttpServer(new RequestHandler { EstimatedMethod = "GET", EstimatedPathAndQuery = $"/v1.0/accounts/{Helper.AccountId}/csrs/{orderId}/notes", ContentToSend = new StringContent(TestXmlStrings.notesResponse2, Encoding.UTF8, "application/xml") })) { var client = Helper.CreateClient(); var result = Csr.ListNotes(client, orderId).Result; if (server.Error != null) { throw server.Error; } Assert.IsNotNull(result.List); Assert.AreEqual(result.List.Length, 2); Assert.AreEqual(result.List[0].Description, "This is a test note"); Assert.AreEqual(result.List[0].Id, "87037"); Assert.AreEqual(result.List[0].UserId, "jbm"); Assert.AreEqual(result.List[0].LastDateModifier, DateTime.Parse("2014-11-16T04:01:10.000")); } }