Example #1
0
 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");
 }
Example #2
0
 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");
 }
Example #3
0
 public void GetBySymbolTest()
 {
     IStockRepository repository = new StockRepository();
     var quote = repository.GetBySymbol("ASRI.JK");
     Assert.IsNotNull(quote, "Quote By Symbol does not return any value");
 }