public void CreateDailyInstrumentMarketData_returns_correct_adjusted_close()
        {
            // arrange
            const decimal adjustedClose = 99.99M;
            const string identifier = "YHOO";
            var input = TestHelper.GetSampleHistoricalCsvLine(adjustedClose: adjustedClose);

            var factory = new YahooMarketDataFactory();

            // act
            var data = factory.CreateDailyInstrumentMarketData(identifier, input);

            // assert
            Assert.That(data.AdjustedClosingPrice, Is.EqualTo(adjustedClose));
        }
        public void CreateDailyInstrumentMarketData_returns_correct_identifier()
        {
            // arrange
            const string identifier = "YHOO";
            var input = TestHelper.GetSampleHistoricalCsvLine();

            var factory = new YahooMarketDataFactory();

            // act
            var data = factory.CreateDailyInstrumentMarketData(identifier, input);

            // assert
            Assert.That(data.Identifier, Is.EqualTo(identifier));
        }
        public void CreateDailyInstrumentMarketData_with_no_identifier_throws_not_implemented_exception()
        {
            // arrange
            var factory = new YahooMarketDataFactory();

            // assert
            Assert.Throws<NotImplementedException>(()=> factory.CreateDailyInstrumentMarketData("something"));
        }