public void ShouldGetPricesReturnPrices() { var aggregator = new EhlCommsAggregator(_ehlApiCalls); var result = aggregator.GetPrices(GetPricesRequest(), "test"); Assert.That(result, Is.Not.Null); }
public void Setup() { var attachments = Mock.Of <IPersistAttachments>(); var ehlHttpClient = new EhlHttpClient(messageHandler: new WebRequestHandler(), attachmentPersister: attachments); _ehlCommsAggregator = new EhlCommsAggregator(new EhlApiCalls(ehlHttpClient)); _startSwitchHelper = new StartSwitchHelper(ehlHttpClient); var startSwitchResponse = _startSwitchHelper.StartSwitch().Result; _pricesRequest = EntityHelper.GenerateValidPricesRequest(startSwitchResponse); }
public void SetUp() { _iHttpClient = new MockEhlHttpClient(); EhlCommsAggregator = new EhlCommsAggregator(new EHLCommsLib.EhlApiCalls(_iHttpClient)); }