namespace LaaProduction.Data.Cordonel.UnitTests.Mock { using LaaPackages.Features.Cordonel; using LaaPackages.HttpClient; using LaaProduction.Data.Cordonel.Sentinel; public class SentinelMockHttpClient : SentinelHttpClient { private readonly SentinelTestContext testContext; private CordonelAppsDictionary appsDictionaryDefaults; public SentinelMockHttpClient(SentinelTestContext testContext) : base(new HttpConnection("http://localhost")) { this.testContext = testContext; this.testContext.AppsDictionaryDefaultsChanged += appsDictionary => this.appsDictionaryDefaults = appsDictionary; } internal override CordonelAppsDictionary GetCordonelAppsDictionaryDefaults() => this.appsDictionaryDefaults; } }