AlreadyInvested() public méthode

public AlreadyInvested ( Investor investor ) : bool
investor Investor
Résultat bool
 public void ShouldBeAbleToTellIfInvestorAlreadyInvested()
 {
     var investor = new Investor(new Name("investor"), new Amount(50000));
     var subscription = new Subscription();
     subscription.Add(new Offer(investor, new Amount(500), null));
     Assert.IsTrue(subscription.AlreadyInvested(investor));
 }
 public void Should_Be_Able_To_Tell_If_Investor_Already_Invested()
 {
     Investor investor = new Investor(new Name("investor"), new GringottsDate(DateTime.Now), new Amount(50000));
     Venture venture = new Venture(new Name("Ventura"), new Amount(100), new Amount(1));
     Subscription subscription = new Subscription();
     subscription.Add(new Offer(investor, new Amount(500), null));
     Assert.IsTrue(subscription.AlreadyInvested(investor));
 }