public EventService(IEventApiClient eventApiClient, IMemberApiClient memberApiClient, ILogger <EventService> logger) { _eventApiClient = eventApiClient ?? throw new ArgumentNullException(nameof(eventApiClient)); _memberApiClient = memberApiClient ?? throw new ArgumentNullException(nameof(memberApiClient)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public MembersController(ILogger <MembersController> logger, IMemberApiClient memberApiClient) { Logger = logger; _membetApiClient = memberApiClient; }
public void Setup() { _logger = new Logger <MembersController>(new NullLoggerFactory()); _membetApiClient = Substitute.For <IMemberApiClient>(); _controller = new MembersController(_logger, _membetApiClient); }