Exemplo n.º 1
0
        protected async Task RoutingToPutValidateModelTest <T>(string uri, T model, HttpStatusCode statusCode)
        {
            var response = await Client.PutAsync(uri, ContentHelper.AsJson(model));

            Assert.Equal(statusCode, response.StatusCode);
            await AssertJObjectContent(response.Content);
        }