public void Put()
        {
            // Arrange
            ProductsController controller = new ProductsController();
            Product            modProduct = controller.GetProduct(_productID).Queryable.FirstOrDefault();

            System.Web.Http.OData.Delta <Product> delta = new System.Web.Http.OData.Delta <Product>(typeof(Product));
            delta.TrySetPropertyValue("Color", "Almond");

            // Act
            IHttpActionResult result = controller.Put(_productID, delta);

            // Assert
        }
 public override System.Threading.Tasks.Task <PedestrianDTO> UpdateAsync(string id, System.Web.Http.OData.Delta <PedestrianDTO> patch)
 {
     return(UpdateEntityAsync(patch, id));
 }
Beispiel #3
0
 public override Task <AuctionItem> UpdateAsync(string id, System.Web.Http.OData.Delta <AuctionItem> patch)
 {
     return(base.UpdateEntityAsync(patch, id));
 }