public LmiOrchestrationTrigger(
            ILogger <LmiOrchestrationTrigger> logger,
            IMapper mapper,
            ILmiImportApiConnector lmiImportApiConnector,
            IDocumentService <JobGroupModel> jobGroupDocumentService,
            IEventGridService eventGridService,
            EventGridClientOptions eventGridClientOptions)
        {
            this.logger = logger;
            this.mapper = mapper;
            this.jobGroupDocumentService = jobGroupDocumentService;
            this.lmiImportApiConnector   = lmiImportApiConnector;
            this.jobGroupDocumentService = jobGroupDocumentService;
            this.eventGridService        = eventGridService;
            this.eventGridClientOptions  = eventGridClientOptions;

            //TODO: ian: need to initialize the telemetry properly
            Activity?activity = null;

            if (Activity.Current == null)
            {
                activity = new Activity(nameof(LmiOrchestrationTrigger)).Start();
                activity.SetParentId(Guid.NewGuid().ToString());
            }
        }
Esempio n. 2
0
 public LmiImportApiConnectorTests()
 {
     lmiImportApiConnector = new LmiImportApiConnector(fakeLogger, httpClient, fakeApiDataConnector);
 }