public async Task Put_Categoria() { var service = new CategoriaController(_mockContext.Object); await service.PutCategoria(1, _categoria); _mockContext.Verify(mocks => mocks.SaveChangesAsync(It.IsAny <CancellationToken>()), Times.Once()); }