Пример #1
0
        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));
        }
Пример #2
0
 public void AccessingImageFromWikiApiTest()
 {
     Assert.AreEqual("test%20string", AccessDataWiki.GetImage("test string"));
 }