Beispiel #1
0
 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));
 }
Beispiel #2
0
 public MembersController(ILogger <MembersController> logger, IMemberApiClient memberApiClient)
 {
     Logger           = logger;
     _membetApiClient = memberApiClient;
 }
Beispiel #3
0
 public void Setup()
 {
     _logger          = new Logger <MembersController>(new NullLoggerFactory());
     _membetApiClient = Substitute.For <IMemberApiClient>();
     _controller      = new MembersController(_logger, _membetApiClient);
 }