Пример #1
0
        public IActionResult Details(int id)
        {
            var model = new EquipoViewModel();
            var query = _equipoManager.GetById(id);

            if (query != null)
            {
                model.Id              = query.Id;
                model.NombreLargo     = query.NombreLargo;
                model.NombreCorto     = query.NombreCorto;
                model.EscudoUrl       = query.EscudoUrl;
                model.FechaAfiliacion = query.FechaAfiliacion;
                model.Borrado         = query.Borrado;
            }

            return(View(model));
        }
Пример #2
0
        public void ReturnFalseGivenValueLowerThan0()
        {
            var result = _equipoManager.GetById(-1);

            Assert.False(result != null, "Failure - not allowed negative values");
        }