public void Test_5_Delete() { //Act var deleteResult = ProductImplementaion.Delete() as OkNegotiatedContentResult <IEnumerable <Guid> >; //Assert Assert.IsNotNull(deleteResult); }
internal static IHttpActionResult Delete() { ProductImplementaion.Delete(); var _categorys = GetAll() as OkNegotiatedContentResult <IEnumerable <Category> >; var categoryIDs = _categorys.Content.Select(t => t.ID).ToList(); var response = baseController.Delete(categoryIDs); return(response); }