public async Task Find_ValidParameters_AddsIssueIdUrlSegment() { const uint expected = 0; await _sut.Find(0, expected); _request.Received().AddUrlSegment("issueId", expected); }
private void ReadOne(int id) { // Act Issue issue = _repo.Find(id); // Assert Assert.IsNotNull(issue, "Find returned null issue"); Assert.AreEqual(id, issue.Id, "IDs don't match"); }
public Issue GetIssue(int issueId) { try { var issue = _issueRepository.Find(issueId); return(issue); } catch (Exception e) { throw new Exception(e.Message); } }