Exemplo n.º 1
0
 public StockUpdater(IEventBus eventBus, ICatalogRepo repo)
 {
     _repo = repo;
     eventBus.Subscribe(this);
 }
 public CatalogController(ICatalogRepo repo, ILogger <CatalogController> logger)
 {
     _logger = logger;
     _repo   = repo;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="repo">Instance of <see cref="ICatalogRepo"/>.</param>
 /// <param name="logger">Instance of <see cref="ILogger{CatalogController}"/>.</param>
 /// <exception cref="ArgumentNullException"><paramref name="logger"/> is <c>Null</c>.</exception>
 /// <exception cref="ArgumentNullException"><paramref name="repo"/> is <c>Null</c>.</exception>
 public CatalogController(ICatalogRepo repo, ILogger <CatalogController> logger)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _repo   = repo ?? throw new ArgumentNullException(nameof(repo));
 }
Exemplo n.º 4
0
 public AlbumController(ILogger <AlbumController> logger, ICatalogRepo repo)
 {
     _logger = logger;
     _repo   = repo;
 }