Esempio n. 1
0
        public void Test_5_Delete()
        {
            //Act
            var deleteResult = ProductImplementaion.Delete() as OkNegotiatedContentResult <IEnumerable <Guid> >;

            //Assert
            Assert.IsNotNull(deleteResult);
        }
Esempio n. 2
0
        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);
        }