2011-nov02-net / 2011-nov02-net/josiah-project0
Customer Equals Method
- Langage dominant
- C#
- Étoiles
- 0
- Forks
- 0
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
The customer Equals() method doesn't check ID number to verify that two instances of the customer class are exactly equal. This can cause problems when comparing people who happen to have the same name. Update this to check every aspect of the customer.
File Location: StoreApp.DataModel/Customer.cs
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
The issue points to StoreApp.DataModel/Customer.cs. Open that file, locate the Equals() method, and modify it to compare all fields of the Customer class, including the ID. Ensure the method follows standard equality override patterns in C#. Test by creating instances with same names but different IDs to verify they are not considered equal.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp
- Domaine
- backend
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 70/100