public void GetBidsTest() { //Arrange BidController bCtr = new BidController(); bool NotEmpty; //Act List <BidData> bidData = bCtr.GetBids(5); if (bidData.Count > 0) { NotEmpty = true; } else { NotEmpty = false; } //Assert Assert.IsTrue(NotEmpty); }
public List <BidData> GetBids(int id) { BidController bCtr = new BidController(); return(bCtr.GetBids(id)); }