Esempio n. 1
0
 /// <summary>
 /// Load all dependencies in the Hosted Service.
 /// </summary>
 /// <param name="triasCommunicator">Trias Communicator service</param>
 /// <param name="cacheAdapter">Adapter for the Cache</param>
 /// <param name="logger">Service to log events</param>
 public TripLogger(
     ITriasCommunicator triasCommunicator,
     ICacheAdapter cacheAdapter,
     ILogger <TripLogger> logger
     )
 {
     _triasCommunicator = triasCommunicator;
     _triasCommunicator.RequestFinished += OnTriasCommunicatorRequestFinished;
     _cacheAdapter = cacheAdapter;
     _logger       = logger;
 }
Esempio n. 2
0
        /// <summary>
        /// Initialize the Trias Communicator
        /// </summary>
        public TriasCommunicatorTests(TestFixture testFixture)
        {
            var serviceProvider = testFixture.ServiceProvider;

            _communicator = serviceProvider.GetService <ITriasCommunicator>() !;
        }