Exemplo n.º 1
0
        public void CanBindRequestFromUriTemplateWithoutExplicitSession()
        {
            // Arrange
              UriTemplate template = new UriTemplate(Constants.CatPath);

              // Act
              using (var response = template.Bind(BaseUrl, new { name = "Petra" }).AcceptJson().Get<Cat>())
              {
            var body = response.Body;

            // Assert
            Assert.IsNotNull(body);
            Assert.AreEqual("Petra", body.Name);
              }
        }