Пример #1
0
        public async void CreateAProject_NullProfileCheck_ReturnBadRequestException()
        {
            var            errMessage = "Bad Request";
            ProjectProfile profile    = null;

            var result = (await _controller.CreateAProject(profile)) as ObjectResult;

            Assert.Equal(StatusCodes.Status400BadRequest, result.StatusCode);
            Assert.IsType <BadRequestException>(result.Value);
            var response = result.Value as BadRequestException;

            Assert.Equal(errMessage, response.status);
        }