public void ShouldGetAllShares() { //Arrange ShareService shareService = new ShareService(shareRepository); //Act var shares = shareService.GetAllShares(); //Assert shareRepository.Received(1).LoadAllShares(); Assert.AreEqual(3, shares.Count()); }
public void ShouldGetAllShares() { //Arrange ShareService shareService = new ShareService(shareRepository); //Act var shares = shareService.GetAllShares(); //Assert shareRepository.Received(1).LoadAllShares(); Assert.AreEqual(3, shares.Count()); }