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

            //Assert
            Assert.IsNotNull(deleteResult);
        }
Exemplo n.º 2
0
        internal static IHttpActionResult Delete()
        {
            ReceiptImplementaion.Delete();

            var _users   = GetAll() as OkNegotiatedContentResult <IEnumerable <User> >;
            var userIDs  = _users.Content.Select(t => t.ID).ToList();
            var response = baseController.Delete(userIDs);

            return(response);
        }
Exemplo n.º 3
0
        internal static IHttpActionResult Delete()
        {
            CartItemImplementaion.Delete();
            ReceiptImplementaion.Delete();

            var _products  = GetAll() as OkNegotiatedContentResult <IEnumerable <Product> >;
            var productIDs = _products.Content.Select(t => t.ID).ToList();
            var response   = baseController.Delete(productIDs);

            return(response);
        }