public void GetHistoricalDataTest() { IStockRepository repository = new StockRepository(); var quote = repository.GetHistorical("ASRI.JK", new DateTime(2015, 8, 3), new DateTime(2015, 8, 4)); Assert.IsNotNull(quote, "Quote Historical does not return any value"); Assert.AreEqual(2, quote.Count, "Historical not returning correct data"); }
public void GetInvalidSymbolTest() { IStockRepository repository = new StockRepository(); var quote = repository.GetBySymbol("123"); Assert.IsNotNull(quote, "Quote By Symbol does not return any value"); Assert.IsNull(quote.Name, "Quote Name should be null"); }
public void GetBySymbolTest() { IStockRepository repository = new StockRepository(); var quote = repository.GetBySymbol("ASRI.JK"); Assert.IsNotNull(quote, "Quote By Symbol does not return any value"); }