Example #1
0
        public async void SendRequestWithoutJsonBodyTest()
        {
            HttpRequest request = HttpRequestFactory.CreatePostRequestWithoutBody();

            ObjectResult result = (ObjectResult)await this.userController.UserCreate(request, this.userClaim);

            // status code should be 400 BAD REQUEST
            Assert.Equal(400, result.StatusCode);
        }