public void PatchTag_UnknownIdPassed_ReturnsNotFound() { _mockRepository.Setup(r => r.GetTagById(It.IsAny <long>())).Returns((Tag)null); var notFoundResult = _controller.PatchTag(5, new JsonPatchDocument <TagUpdateDto>()); Assert.IsType <NotFoundResult>(notFoundResult); }