Edit the test assert

This commit is contained in:
Christian Arenas 2017-06-28 18:06:16 +02:00
parent 6a0001b9c6
commit ddcb665bcd

View File

@ -1,4 +1,5 @@
using System; using System;
using System.Net;
namespace IntegrationTests.Services.Catalog namespace IntegrationTests.Services.Catalog
{ {
@ -40,7 +41,7 @@ namespace IntegrationTests.Services.Catalog
var response = await server.CreateClient() var response = await server.CreateClient()
.GetAsync(Get.ItemById(int.MinValue)); .GetAsync(Get.ItemById(int.MinValue));
response.EnsureSuccessStatusCode(); Assert.Equal(response.StatusCode, HttpStatusCode.BadRequest);
} }
} }
@ -52,7 +53,7 @@ namespace IntegrationTests.Services.Catalog
var response = await server.CreateClient() var response = await server.CreateClient()
.GetAsync(Get.ItemById(int.MaxValue)); .GetAsync(Get.ItemById(int.MaxValue));
response.EnsureSuccessStatusCode(); Assert.Equal(response.StatusCode, HttpStatusCode.NotFound);
} }
} }