public void Offers_Contains_At_Least_One_Player_WithourPlayer() { var offer1 = new TradeOffer(new Club() { Money = 100 }); var offer2 = new TradeOffer(new Club() { Money = 100 }); var rule = new OffersContainsAtLeastPlayer(offer1, offer2); Assert.AreEqual(false, rule.Validate()); }
public void Offers_Contains_At_Least_One_Player_Offer2() { TransferMarket market; Club manchester; Club barcelona; SetUpMock(out market, out manchester, out barcelona); var aguero = manchester.GetPlayer(2); var offer1 = new TradeOffer(barcelona); var offer2 = new TradeOffer(manchester); offer2.AddPlayer(aguero); var rule = new OffersContainsAtLeastPlayer(offer1, offer2); Assert.AreEqual(true, rule.Validate()); }