public EventBaseController(ILoggerFactory loggerFactory, IRatingsServiceFactory ratingsServiceFactory) { if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } InitaliseLogger(loggerFactory); if (ratingsServiceFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } InitaliseRatingsService(ratingsServiceFactory); }
public PrerecordedEventController(ILoggerFactory loggerFactory, IRatingsServiceFactory ratingsServiceFactory) : base(loggerFactory, ratingsServiceFactory) { }
public LiveEventController(ILoggerFactory loggerFactory, IRatingsServiceFactory ratingsServiceFactory) : base(loggerFactory, ratingsServiceFactory) { }
private void InitaliseRatingsService(IRatingsServiceFactory ratingsServiceFactory) { ratingsService = ratingsServiceFactory.Create(); }