public async Task GetTemplateAsync_ValidParameters_ExpectedResult()
        {
            IANSSafeDNSClient client = Substitute.For <IANSSafeDNSClient>();

            client.GetAsync <Template>("/safedns/v1/templates/123").Returns(new Template()
            {
                ID = 123
            });

            var ops      = new TemplateOperations <Template>(client);
            var template = await ops.GetTemplateAsync(123);

            Assert.AreEqual(123, template.ID);
        }
 public async Task GetTemplateAsync_InvalidTemplateID_ThrowsANSClientValidationException()
 {
     var ops = new TemplateOperations <Template>(null);
     await Assert.ThrowsExceptionAsync <ANSClientValidationException>(() => ops.GetTemplateAsync(0));
 }