Ejemplo n.º 1
0
        protected override async Task TestDelete()
        {
            Uri uri      = new Uri(FBaseUri, string.Format("StudentMarks/{0}", FStudentMarks[0].GetId()));
            var response = await FClient.DeleteAsync(uri.ToString());

            await CheckStatusCodeIs(response, HttpStatusCode.MethodNotAllowed);
        }
Ejemplo n.º 2
0
        protected override async Task TestDeleteNonExistingItem()
        {
            const string BAD_ID   = "12345678";
            Uri          uri      = new Uri(FBaseUri, string.Format("StudentExceptions/{0}", BAD_ID));
            var          response = await FClient.DeleteAsync(uri.ToString());

            await CheckStatusCodeIs(response, HttpStatusCode.NotFound);
        }
Ejemplo n.º 3
0
        protected override async Task TestDeleteNonExistingItem()
        {
            const string BAD_ID   = "12345678";
            Uri          uri      = new Uri(FBaseUri, string.Format("RegisterSummaries/{0}", BAD_ID));
            var          response = await FClient.DeleteAsync(uri.ToString());

            await CheckStatusCodeIs(response, HttpStatusCode.MethodNotAllowed);
        }
Ejemplo n.º 4
0
        protected override async Task TestDelete()
        {
            Uri uri = new Uri(FBaseUri, "StudentTimesInOut/123");

            var response = await FClient.DeleteAsync(uri.ToString());

            await CheckStatusCodeIs(response, HttpStatusCode.MethodNotAllowed);
        }
Ejemplo n.º 5
0
 protected override async Task TestDelete()
 {
     // remove the newly inserted exceptions...
     foreach (var e in FNewlyInsertedExceptions)
     {
         Uri uri      = new Uri(FBaseUri, string.Format("StudentExceptions/{0}", e.GetId()));
         var response = await FClient.DeleteAsync(uri.ToString());
         await CheckStatusCodeIs(response, HttpStatusCode.NoContent);
     }
 }
Ejemplo n.º 6
0
 protected override async Task TestDelete()
 {
     if (FRegisters.Count > 0)
     {
         var reg      = FRegisters[0];
         Uri uri      = new Uri(FBaseUri, string.Format("Registers/{0}", reg.GetId()));
         var response = await FClient.DeleteAsync(uri.ToString());
         await CheckStatusCodeIs(response, HttpStatusCode.MethodNotAllowed);
     }
 }
Ejemplo n.º 7
0
 protected override async Task TestDelete()
 {
     // remove the newly inserted defs...
     foreach (var md in FNewlyInsertedOLAMarks)
     {
         Uri uri      = new Uri(FBaseUri, string.Format("OLAStaging/{0}", md.GetId()));
         var response = await FClient.DeleteAsync(uri.ToString());
         await CheckStatusCodeIs(response, HttpStatusCode.NoContent);
     }
 }