Esempio n. 1
0
        public async Task Find_ValidParameters_AddsIssueIdUrlSegment()
        {
            const uint expected = 0;

            await _sut.Find(0, expected);

            _request.Received().AddUrlSegment("issueId", expected);
        }
Esempio n. 2
0
        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");
        }
Esempio n. 3
0
 public Issue GetIssue(int issueId)
 {
     try
     {
         var issue = _issueRepository.Find(issueId);
         return(issue);
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }