//ctor public DataContext(IConnection connection) { Connection = connection ?? throw new ArgumentNullException(nameof(connection)); LabRepository = new LabRepository(Connection); KnchRepository = new KnchRepository(Connection); }
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; }