示例#1
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            var c = Categorias.GetCategoria(
                Convert.ToInt32(dgDatos.CurrentRow.Cells[0].Value.ToString()));

            if (c != null)
            {
                FrmCategoriaEdit editar = new FrmCategoriaEdit(c);
                editar.ShowDialog();
                editar.Dispose();
                ActualizarDatos();
            }
        }
        public async Task Get_Categoria()
        {
            var service = new CategoriaController(_mockContext.Object);
            await service.GetCategoria(1);

            _mockSet.Verify(m => m.FindAsync(1), Times.Once());
        }