C#C
C#13mo ago
kostas

Problem updating Employee object

Hello guys, I would really love if someone could point out what is wrong in my code.
I have got a task to implement the UpdateEmployee method to update the employee's information in the Employees table using the provided data. (ADO.NET, the database is SqlLite)

I have been stuck for time and cannot seem to figure out what the problem is.

I'm failing all unit tests, every unit test shows the same message:
Expected: True
But was: False

at NorthwindEmployeeAdoNetService.Tests.EmployeeAdoNetServiceWriteOperationsTests.UpdateEmployee_EmployeeIsExist_UpdatesEmployee(Employee employee) in ......

Of course, I have asked LLM's for help, they didn't help.

I did not write these unit tests, I do not have access to the DB, I just need to make my code work.
Screenshot_2024-12-01_at_23.38.14.png
code.txt7.18KB
Was this page helpful?