Ejemplo n.º 1
0
        public void TestCreateNote()
        {
            var orderId = "123";

            var note = new Note
            {
                Description = "Description goes here"
            };

            using (var server = new HttpServer(new RequestHandler
            {
                EstimatedMethod = "POST",
                EstimatedPathAndQuery = $"/v1.0/accounts/{Helper.AccountId}/csrs/{orderId}/notes",
            }))
            {
                var client = Helper.CreateClient();
                Csr.CreateNote(client, orderId, note).Wait();
                if (server.Error != null)
                {
                    throw server.Error;
                }
            }
        }