public void ReturnsContentForKnownErrorCodes(int errorCode) { var result = _subject.Show(errorCode).Result; Assert.IsType <ViewResult>(result); var viewResult = (ViewResult)result; Assert.Equal(errorCode, ((ErrorViewModel)viewResult.Model).StatusCode); }