public void GetExpositionInfo_return_null_when_Exposition_not_found() { int id = 0; var result = _expositionService.GetExpositionInfo(id); Assert.IsNull(result); }
public override void GetExposition(IExpositionService expositionService) { Choice("Please enter grafik or exposition Id :"); var exposition = expositionService.GetExpositionInfo(choice); if (exposition == null) { Console.WriteLine("Not found"); return; } Console.WriteLine(exposition.ToString()); }
public IHttpActionResult GetExposition(int id) { var exposition = mapper.Map <ExpositionModel>(expositionService.GetExpositionInfo(id)); return(Ok(exposition)); }