Exemplo n.º 1
0
 public SprintsController(Lazy <IMapper> mapper,
                          ISprintLister lister)
 {
     if (mapper == null)
     {
         throw new ArgumentNullException(nameof(mapper));
     }
     if (lister == null)
     {
         throw new ArgumentNullException(nameof(lister));
     }
     this.lister = lister;
     this.mapper = mapper;
 }
        public AvailableSprintsNewTicketModelFactoryDecorator(IGetsNewTicketModel wrapped,
                                                              ISprintLister sprintLister,
                                                              IMapper mapper)
        {
            if (wrapped == null)
            {
                throw new ArgumentNullException(nameof(wrapped));
            }
            if (mapper == null)
            {
                throw new ArgumentNullException(nameof(mapper));
            }
            if (sprintLister == null)
            {
                throw new ArgumentNullException(nameof(sprintLister));
            }

            this.wrapped      = wrapped;
            this.sprintLister = sprintLister;
            this.mapper       = mapper;
        }