public void EditGET_GivenAssessmentIsNull_HttpExceptionExpected() { A.CallTo(() => _assessmentHelper.GetAssessment(A <Guid> ._)).Returns(null); _assessmentController.Invoking(x => x.Edit(A <Guid> ._)) .ShouldThrow <HttpException>() .And.GetHttpCode() .Should() .Be((int)HttpStatusCode.NotFound); }