Beispiel #1
0
        public void WhenGet_GivenValidShareId_ShouldReturnThatShare()
        {
            var shareId = _validShareId;

            var result = _shareService.Get(shareId);

            var expectedShareId = shareId;

            Assert.AreEqual(expectedShareId, result.ID);
        }
Beispiel #2
0
 public IHttpActionResult Get(int id)
 {
     try
     {
         return(Ok(shareService.Get(id)));
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }