public void GetByID_EntityNotFound() { this.mockRepository.Setup(x => x.GetByID(It.IsAny <object>())); var services = new BidderService(this.mockRepository.Object); services.GetByID(0).Should().BeNull(); }
public void InsertBidderShouldNotFail() { person.Id = userProfile.Id; person.UserProfile = userProfile; person.Bidder = bidder; bidder.Id = person.Id; bidder.Person = person; var failed = bidderServices.Insert(bidder); var dbBidder = bidderServices.GetByID(bidder.Id); Assert.AreEqual(bidder, dbBidder); }