Esempio n. 1
0
        public void ทดสอบบันทึกเฉพาะDetailของเอกสาร()
        {
            DonateDetailDataModel detailitem = new DonateDetailDataModel
            {
                DocumentRunno = 5,
                Description   = "เพิ่มรายการโดยที่",
                Amount        = 5000,
                Remark        = "เลขระหว่างกลางหาย"
            };

            DonateDataController.Controllers.DonateDataController service = new DonateDataController.Controllers.DonateDataController();
            var result = service.AddDonateDetailData(detailitem);

            Assert.IsNotNull(result);
        }
Esempio n. 2
0
        public void ทดสอบแก้ไขDetailเอกสาร()
        {
            DonateDetailDataModel detailitem = new DonateDetailDataModel
            {
                DocumentRunno = 5,
                DetailRunno   = 2,
                Description   = "เครื่องชงกาแฟสำเร็จ",
                Amount        = 20000,
                Remark        = "สำหรับใช้งานใน Office"
            };

            DonateDataController.Controllers.DonateDataController service = new DonateDataController.Controllers.DonateDataController();
            var result = service.EditDonateDetailData(detailitem);

            Assert.IsNotNull(result);
        }
Esempio n. 3
0
        public void ทดสอบแก้ไขDetailเอกสารพก10()
        {
            DonateDetailDataModel item = new DonateDetailDataModel
            {
                DocumentRunno = 8,
                DetailRunno   = 17,
                Description   = "เงินสด",
                Amount        = 666,
                Remark        = "",
                Bill          = "",
                BankChqueNo   = "",
                Asset         = "",
                Benefit       = ""
            };

            DonateDataController.Controllers.DonateDataController service = new DonateDataController.Controllers.DonateDataController();
            var result = service.EditDonateDetailData(item);

            Assert.IsNotNull(result);
        }