예제 #1
0
 public Sponsor(
     int id = default,
     Event sponsoredevent          = default,
     Company sponsoringcompany     = default,
     SponsorLevel sponsorshiplevel = default
     )
 {
     this.Id                = id;
     this.SponsoredEvent    = new Event(sponsoredevent);
     this.SponsoringCompany = new Company(sponsoringcompany);
     this.SponsorshipLevel  = new SponsorLevel(sponsorshiplevel);
 }
예제 #2
0
 public Sponsor WithSponsorshipLevel(SponsorLevel sponsorshiplevel) =>
 new Sponsor(this.Id, this.SponsoredEvent, this.SponsoringCompany, sponsorshiplevel);