Exemplo n.º 1
0
        public UnitOfWork(WhiskyDbContext context,
                          IDestilleryRepository destilleryRepository,
                          IWhiskyRepository whiskyRepository
                          )
        {
            this.context = context;

            this.WhiskyRepository     = whiskyRepository;
            this.DestilleryRepository = destilleryRepository;
        }
Exemplo n.º 2
0
 public WhiskyRepository(WhiskyDbContext context, ILogger <WhiskyRepository> logger)
 {
     this.logger  = logger;
     this.context = context;
 }
 public DestilleryRepository(WhiskyDbContext context, ILogger <DestilleryRepository> logger)
 {
     this.logger  = logger;
     this.context = context;
 }