public async Task UpdateTemplateAsync_ValidParameters_ExpectedClientCall()
        {
            UpdateTemplateRequest req = new UpdateTemplateRequest()
            {
                Name = "template1"
            };

            IANSSafeDNSClient client = Substitute.For <IANSSafeDNSClient>();

            var ops = new TemplateOperations <Template>(client);
            await ops.UpdateTemplateAsync(123, req);

            await client.Received().PatchAsync("/safedns/v1/templates/123", req);
        }
 public async Task UpdateTemplateAsync_InvalidTemplateID_ThrowsANSClientValidationException()
 {
     var ops = new TemplateOperations <Template>(null);
     await Assert.ThrowsExceptionAsync <ANSClientValidationException>(() => ops.UpdateTemplateAsync(0, null));
 }