public void UpdateFailedTest(int[] a)
        {
            adminService.UpdateFailedStudentList(new System.Collections.Generic.List <int> {
                1, 2, 3
            }).Returns(true);

            bool result = bService.UpdateFailed(a.ToList());

            Assert.AreEqual(true, result);
        }
Beispiel #2
0
 public HttpResponseMessage PostUpdateFailed(List <int> uTestID)
 {
     try
     {
         if (bllService.UpdateFailed(uTestID))
         {
             return(Request.CreateResponse(HttpStatusCode.OK, "Retests made available!"));
         }
         else
         {
             return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Something Went Wrong, PLease retry"));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }