Example #1
0
        public void WhenRequestIsInvalid_CustomApiExceptionOccurs(GenerateProjectRequest generateProjectRequest)
        {
            var customApiException = Assert.Throws <CustomApiException>(() => _sut.Generate(generateProjectRequest));

            Assert.Equal(HttpStatusCode.BadRequest, customApiException.ReturnHttpStatusCode);
        }