public void WhenGetAll_ShouldReturnAllShares() { var result = _shareService.GetAll(); var expectedShareCount = 3; Assert.AreEqual(expectedShareCount, result.Count); }
public Result <IList <Shares> > GetAll(int plannerId) { var result = new Result <IList <Shares> >(); ShareService shareService = new ShareService(); result.Value = shareService.GetAll(plannerId); result.IsSuccess = true; return(result); }
// GET api/<controller> public IEnumerable <ShareOutViewModel> Get() { return(_service.GetAll()); }
// GET: api/Share public List <object> GetAllShares() { return(service.GetAll()); }