public EventsController(IGetEventsUseCase getEvents, ISaveEventUseCase saveEvents, IMapper mapper) { Require.NotNull(getEvents); Require.NotNull(saveEvents); Require.NotNull(mapper); _getEvents = getEvents; _saveEvents = saveEvents; _mapper = mapper; }
public void Test1(IGetEventsUseCase getEventsUseCase, ISaveEventUseCase saveEventsUseCase, IMapper mapper, string expectedMissingArg) { Action @new = () => new EventsController(getEventsUseCase, saveEventsUseCase, mapper); @new.Should().ThrowArgumentNullException(expectedMissingArg); }