public async Task GetRaceData() { string path = AppDomain.CurrentDomain.BaseDirectory + SystemConstants.TestDataUri; var dir = Directory.GetFiles(path); var raceData = _dataReaderFactory.GetRaceData(dir.ToList()); Assert.IsNotNull(raceData); Assert.AreEqual(raceData.Message, string.Empty); Assert.AreEqual(raceData.HorsePrice.Count, 2); }
public async Task GetRaceData() { string path = AppDomain.CurrentDomain.BaseDirectory + SystemConstants.FeedDataUri; var dir = Directory.GetFiles(path); var raceData = _dataReaderFactory.GetRaceData(dir.ToList()); Assert.IsNotNull(raceData); Assert.AreEqual(raceData.Message, string.Empty); Assert.AreNotEqual(raceData.HorsePrice.Count, 0); var isHigher = raceData.HorsePrice.FirstOrDefault().Price > raceData.HorsePrice.LastOrDefault().Price; Assert.IsTrue(isHigher); }