Example #1
0
        public EventsController(IGetEventsUseCase getEvents, ISaveEventUseCase saveEvents, IMapper mapper)
        {
            Require.NotNull(getEvents);
            Require.NotNull(saveEvents);
            Require.NotNull(mapper);

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

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