Exemple #1
0
        //ctor
        public DataContext(IConnection connection)
        {
            Connection = connection ?? throw new ArgumentNullException(nameof(connection));

            LabRepository  = new LabRepository(Connection);
            KnchRepository = new KnchRepository(Connection);
        }
Exemple #2
0
        public TrainingsController(Lazy<IUnitOfWork> unitOfWorkLazy, Lazy<AzureFacadeFactory> azureFacadeFactoryLazy,
			LabRepository repository, Lazy<ServiceBusMessageHandler> messagingLazy, Lazy<SubscriptionService> subscriptionService)
        {
            _unitOfWorkLazy = unitOfWorkLazy;
            _azureFacadeFactoryLazy = azureFacadeFactoryLazy;
            _repository = repository;
            _messagingLazy = messagingLazy;
            _subscriptionService = subscriptionService;
        }