© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•15mo 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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Problem with updating an object.
C#CC# / help
3y ago
❔ Grid Employee
C#CC# / help
3y ago
✅ Problem updating rider
C#CC# / help
11mo ago
Updating Immutable object with ef
C#CC# / help
2y ago