public void GetExpositionInfo_return_null_when_Exposition_not_found()
        {
            int id = 0;

            var result = _expositionService.GetExpositionInfo(id);

            Assert.IsNull(result);
        }
Exemple #2
0
        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());
        }
Exemple #3
0
        public IHttpActionResult GetExposition(int id)
        {
            var exposition = mapper.Map <ExpositionModel>(expositionService.GetExpositionInfo(id));

            return(Ok(exposition));
        }