public IActionResult Info(string firstname, string familyname) { DriverInfoViewModel driverInfoViewModel = new DriverInfoViewModel(); driverInfoViewModel.Image = _mapper.Map <F1Api.Models.WikiModels.WikiImage>(AccessDataWiki.GetImage($"{firstname} {familyname}")); return(View(driverInfoViewModel)); }
public void AccessingImageFromWikiApiTest() { Assert.AreEqual("test%20string", AccessDataWiki.GetImage("test string")); }