コード例 #1
0
        public void ShouldGetPricesReturnPrices()
        {
            var aggregator = new EhlCommsAggregator(_ehlApiCalls);
            var result     = aggregator.GetPrices(GetPricesRequest(), "test");

            Assert.That(result, Is.Not.Null);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void SetUp()
 {
     _iHttpClient       = new MockEhlHttpClient();
     EhlCommsAggregator = new EhlCommsAggregator(new EHLCommsLib.EhlApiCalls(_iHttpClient));
 }