public EventsController(
     IGetEventsUseCase getEventsUseCase,
     GetEventsPresenter getEventsPresenter
     )
 {
     _getEventsUseCase   = getEventsUseCase;
     _getEventsPresenter = getEventsPresenter;
 }
Esempio n. 2
0
        public EventsController(IGetEventsUseCase getEvents, ISaveEventUseCase saveEvents, IMapper mapper)
        {
            Require.NotNull(getEvents);
            Require.NotNull(saveEvents);
            Require.NotNull(mapper);

            _getEvents  = getEvents;
            _saveEvents = saveEvents;
            _mapper     = mapper;
        }
Esempio n. 3
0
        public void Test1(IGetEventsUseCase getEventsUseCase, ISaveEventUseCase saveEventsUseCase, IMapper mapper, string expectedMissingArg)
        {
            Action @new = () => new EventsController(getEventsUseCase, saveEventsUseCase, mapper);

            @new.Should().ThrowArgumentNullException(expectedMissingArg);
        }