Example #1
0
        public void VoidRecordedService_Success()
        {
            var voidServiceViewModel = new VoidServiceViewModel
            {
                ServiceRecordingID           = 1,
                ServiceRecordingVoidReasonID = 1,
                IncorrectOrganization        = true,
                IncorrectServiceType         = true,
                IncorrectServiceItem         = true,
                IncorrectServiceStatus       = true,
                IncorrectSupervisor          = true,
                IncorrectAdditionalUser      = true,
                IncorrectAttendanceStatus    = true,
                IncorrectStartDate           = true,
                IncorrectStartTime           = true,
                IncorrectEndDate             = true,
                IncorrectEndTime             = true,
                IncorrectDeliveryMethod      = true,
                IncorrectServiceLocation     = true,
                IncorrectRecipientCode       = true,
                IncorrectTrackingField       = true,
                Comments   = "",
                ModifiedOn = DateTime.Now
            };
            var result = _rep.VoidService(voidServiceViewModel);

            Assert.IsTrue(result.RowAffected > 0);
        }
Example #2
0
 public JsonResult VoidRecordedService(VoidServiceViewModel voidService)
 {
     return(Json(_voidServiceRepository.VoidService(voidService), JsonRequestBehavior.AllowGet));
 }