Example #1
0
 public Manager(IGuests guests, ICompanies companies, ITemplates templates)
 {
     _guests    = guests;
     _companies = companies;
     _templates = templates;
 }
        private readonly IGuests _Guests;         //Its a Singleton, so this is just reference to a single instance

        public RsvpFormController(IGuests aGuest)
        {
            _Guests =
                aGuest
                ?? throw new ArgumentNullException(nameof(aGuest));
        }
Example #3
0
        private readonly IGuests _Guests;         //Its a Singleton, so this is just reference to a single instance

        public ListResponsesController(IGuests aGuests)
        {
            _Guests =
                aGuests
                ?? throw new ArgumentNullException(nameof(aGuests));
        }
Example #4
0
 public GuestsController(IGuests guests)
 {
     _guests = guests;
 }