From 5e91a0fc281252076cf90c350eab15ec3c2eba71 Mon Sep 17 00:00:00 2001 From: Ivan Gutorov Date: Mon, 17 Feb 2025 16:18:13 +0400 Subject: [PATCH] fix exception message --- .../TheCyclopsContracts/DataModels/InstallationDataModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TheCyclopsProject/TheCyclopsContracts/DataModels/InstallationDataModel.cs b/TheCyclopsProject/TheCyclopsContracts/DataModels/InstallationDataModel.cs index 3730e21..04e6642 100644 --- a/TheCyclopsProject/TheCyclopsContracts/DataModels/InstallationDataModel.cs +++ b/TheCyclopsProject/TheCyclopsContracts/DataModels/InstallationDataModel.cs @@ -45,6 +45,6 @@ public class InstallationDataModel(string id, string employeeId, throw new ValidationException("Field Sum is less than or equal to 0"); if ((Components?.Count ?? 0) == 0) - throw new ValidationException("The sale must include components"); + throw new ValidationException("The installation must include components"); } }