public void TestActualizarBancoAreEqual() { var compare = false; var dto = new BancoDto(); dto.Id = 1; dto.Nombre = "BCP"; dto.Direccion = "Torre Principal BCP"; dto.FechaRegistro = DateTime.Now; _query.Actualizar(dto); var lista = _query.Listar(new BancoDto()); if (lista[0].Id == dto.Id && lista[0].Nombre == dto.Nombre && lista[0].Direccion == dto.Direccion) { compare = true; } Assert.AreEqual(compare, true); }
public List <BancoDto> Listar(BancoDto dto) { try { _query = new DQuery(_unitOfWork); var list = _query.Listar(new BancoDto()); return(list); } catch (Exception ex) { throw ex; } }
public IActionResult Index() { try { _query = new DQuery(_unitOfWork); var list = _query.Listar(new BancoDto()); return(View(list)); } catch (Exception ex) { throw ex; } }