Beispiel #1
0
        public void Test_1_Insert()
        {
            //Act
            var response = ReceiptItemImplementaion.Insert() as OkNegotiatedContentResult <IEnumerable <ReceiptItem> >;

            //Assert
            Assert.IsNotNull(response);
        }
Beispiel #2
0
        public void Test_4_GetByID()
        {
            // Act
            var response = ReceiptItemImplementaion.GetByID() as OkNegotiatedContentResult <ReceiptItem>;

            // Assert
            Assert.IsNotNull(response);
        }
Beispiel #3
0
        public void Test_5_Delete()
        {
            //Act
            var response = ReceiptItemImplementaion.Delete() as OkNegotiatedContentResult <IEnumerable <Guid> >;

            //Assert
            Assert.IsNotNull(response);
        }
Beispiel #4
0
        internal static IHttpActionResult Delete()
        {
            ReceiptItemImplementaion.Delete();

            var _receipts  = GetAll() as OkNegotiatedContentResult <IEnumerable <Receipt> >;
            var receiptIDs = _receipts.Content.Select(t => t.ID).ToList();
            var response   = baseController.Delete(receiptIDs);

            return(response);
        }