public void OnException_WithEntityNotFoundException_SetsNotFoundObjectResult() { var ctx = GetExceptionContext(new EntityNotFoundException()); _sut.OnException(ctx); ctx.Result.Should().BeAssignableTo(typeof(NotFoundObjectResult)); }