public void MakingARegistration() { var invite = new SpecialEventRegistration(new Emailer()) { DateOfEvent = new DateTime(2021, 4, 20), Employee = new Employee("Joe", "DEV", 230000), Event = "Fun Time Time" }; invite.Invite(); }
public void MakingARegistration() { IEmailPartyInvitations e2 = new Emailer(); e2.Invite("bob", "party's on, dude"); var invite = new SpecialEventRegistration(new Emailer()) { DateOfEvent = new DateTime(2021, 4, 20), Employee = new Employee("Ben", "DEV", 280000), Event = "Jeff's Birthday Bash" }; invite.Invite(); }