Exemplo n.º 1
0
        public CampaignPresenter(CampaignRepository repository,
                                 IPresentationMapper mapper)
        {
            if (repository == null)
            {
                throw new ArgumentNullException("repository");
            }
            if (mapper == null)
            {
                throw new ArgumentNullException("mapper");
            }

            this.repository = repository;
            this.mapper     = mapper;
        }
        public CampaignPresenter(CampaignRepository repository,
            IPresentationMapper mapper)
        {
            if (repository == null)
            {
                throw new ArgumentNullException("repository");
            }
            if (mapper == null)
            {
                throw new ArgumentNullException("mapper");
            }

            this.repository = repository;
            this.mapper = mapper;
        }
Exemplo n.º 3
0
 public CodeCampDataService(ISponsorMapper sponsorMapper, IPresentationMapper presentationMapper, IAnnouncementMapper announcementMapper)
 {
     this.SponsorMapper = sponsorMapper;
     this.PresentationMapper = presentationMapper;
     this.AnnouncementMapper = announcementMapper;
 }