public void ReadCaulfieldRace_Withfile_Sucess() { //Arrange _dataClient.ReadXmlData(Arg.Any <string>()).Returns(RaceResponse()); //Act var caulfieldRaceData = _caulfieldRaceClient.GetRacesData(); //Assert Assert.NotNull(caulfieldRaceData); Assert.Single(caulfieldRaceData); Assert.Equal(1, caulfieldRaceData[0].Id); Assert.Equal("Test Horse 1", caulfieldRaceData[0].Name); Assert.Equal(4.2m, caulfieldRaceData[0].Price); }
public List <HorseDetails> GetRacesData() { return(MapData(_dataClient.ReadXmlData("Caulfield_"))); }