diff --git a/SynonymsAPI/Services/BadService.cs b/SynonymsAPI/Services/BadService.cs index c68c883..f0b3c2e 100644 --- a/SynonymsAPI/Services/BadService.cs +++ b/SynonymsAPI/Services/BadService.cs @@ -137,28 +137,6 @@ public bool Add(string word, string foo) { try { - if (word == "A") - { - - } - else if (word.Contains("B")) - { - if (word == "BA") - { - - } - else if (word == "BB") - { - if (word == "A") - { - - } - } - } - else if (word == "C") - { - - } return true; } catch (Exception) @@ -172,65 +150,6 @@ public bool Add(string word, int foo) { try { - if (word == "A") - { - if (word == "A") - { - if (word == "A") - { - - } - - } - else if (word.Contains("B")) - { - if (word == "BA") - { - if (word == "A") - { - - } - else if (word.Contains("B")) - { - if (word == "BA") - { - - } - else if (word == "BB") - { - - } - } - else if (word == "C") - { - - } - } - else if (word == "BB") - { - - } - } - else if (word == "C") - { - - } - } - else if (word.Contains("B")) - { - if (word == "BA") - { - - } - else if (word == "BB") - { - - } - } - else if (word == "C") - { - - } return true; } catch (Exception) @@ -489,39 +408,6 @@ public decimal Calculate(decimal amount, int type, int years) { decimal result = 0; decimal disc = (years > 5) ? (decimal)5 / 100 : (decimal)years / 100; - if (type == 1) - { - result = amount; - if (type == 1) - { - result = amount; - } - else if (type == 2) - { - result = (amount - (0.1m * amount)) - disc * (amount - (0.1m * amount)); - } - else if (type == 3) - { - result = (0.7m * amount) - disc * (0.7m * amount); - } - else if (type == 4) - { - result = (amount - (0.5m * amount)) - disc * (amount - (0.5m * amount)); - } - return result; - } - else if (type == 2) - { - result = (amount - (0.1m * amount)) - disc * (amount - (0.1m * amount)); - } - else if (type == 3) - { - result = (0.7m * amount) - disc * (0.7m * amount); - } - else if (type == 4) - { - result = (amount - (0.5m * amount)) - disc * (amount - (0.5m * amount)); - } return result; } diff --git a/SynonymsAPI/Services/SynonymsService.cs b/SynonymsAPI/Services/SynonymsService.cs index 02a72ce..96c08a9 100644 --- a/SynonymsAPI/Services/SynonymsService.cs +++ b/SynonymsAPI/Services/SynonymsService.cs @@ -105,7 +105,39 @@ public bool Add(string word, List synonyms) { if (word == "BA") { + if (word == "A") + { + } + else if (word.Contains("B")) + { + if (word == "BA") + { + + } + else if (word == "BB") + { + if (word == "BA") + { + + } + else if (word == "BB") + { + if (word == "BA") + { + + } + else if (word == "BB") + { + + } + } + } + } + else if (word == "C") + { + + } } else if (word == "BB") { @@ -224,7 +256,39 @@ public bool AddTest(string word) { if (word == "BA") { + if (word == "A") + { + } + else if (word.Contains("B")) + { + if (word == "BA") + { + + } + else if (word == "BB") + { + if (word == "BA") + { + + } + else if (word == "BB") + { + if (word == "BA") + { + + } + else if (word == "BB") + { + + } + } + } + } + else if (word == "C") + { + + } } else if (word == "BB") { diff --git a/SynonymsAPI/obj/Debug/net6.0/SynonymsAPI.assets.cache b/SynonymsAPI/obj/Debug/net6.0/SynonymsAPI.assets.cache index 5d10a42..2dcdc4a 100644 Binary files a/SynonymsAPI/obj/Debug/net6.0/SynonymsAPI.assets.cache and b/SynonymsAPI/obj/Debug/net6.0/SynonymsAPI.assets.cache differ diff --git a/SynonymsAPI/obj/Debug/net6.0/SynonymsAPI.csproj.AssemblyReference.cache b/SynonymsAPI/obj/Debug/net6.0/SynonymsAPI.csproj.AssemblyReference.cache index 610d7ec..61198c3 100644 Binary files a/SynonymsAPI/obj/Debug/net6.0/SynonymsAPI.csproj.AssemblyReference.cache and b/SynonymsAPI/obj/Debug/net6.0/SynonymsAPI.csproj.AssemblyReference.cache differ diff --git a/SynonymsAPI/obj/SynonymsAPI.csproj.nuget.g.props b/SynonymsAPI/obj/SynonymsAPI.csproj.nuget.g.props index 421d9a5..d9cbb7e 100644 --- a/SynonymsAPI/obj/SynonymsAPI.csproj.nuget.g.props +++ b/SynonymsAPI/obj/SynonymsAPI.csproj.nuget.g.props @@ -7,7 +7,7 @@ /Users/irmadzemidzic/.nuget/packages/ /Users/irmadzemidzic/.nuget/packages/ PackageReference - 6.3.1 + 6.4.0 diff --git a/SynonymsAPI/obj/project.assets.json b/SynonymsAPI/obj/project.assets.json index 347d774..ab9e8b6 100644 --- a/SynonymsAPI/obj/project.assets.json +++ b/SynonymsAPI/obj/project.assets.json @@ -2306,7 +2306,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/7.0.101/RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/7.0.200/RuntimeIdentifierGraph.json" } } } diff --git a/Test/obj/Debug/net6.0/Test.assets.cache b/Test/obj/Debug/net6.0/Test.assets.cache index 00d67d1..74806d7 100644 Binary files a/Test/obj/Debug/net6.0/Test.assets.cache and b/Test/obj/Debug/net6.0/Test.assets.cache differ diff --git a/Test/obj/Debug/net6.0/Test.csproj.AssemblyReference.cache b/Test/obj/Debug/net6.0/Test.csproj.AssemblyReference.cache index 9ec2d90..0545a45 100644 Binary files a/Test/obj/Debug/net6.0/Test.csproj.AssemblyReference.cache and b/Test/obj/Debug/net6.0/Test.csproj.AssemblyReference.cache differ diff --git a/Test/obj/Test.csproj.nuget.dgspec.json b/Test/obj/Test.csproj.nuget.dgspec.json index 1fce8c4..90e5492 100644 --- a/Test/obj/Test.csproj.nuget.dgspec.json +++ b/Test/obj/Test.csproj.nuget.dgspec.json @@ -86,7 +86,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/7.0.100/RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/7.0.200/RuntimeIdentifierGraph.json" } } }, @@ -165,7 +165,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/7.0.100/RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/7.0.200/RuntimeIdentifierGraph.json" } } } diff --git a/Test/obj/Test.csproj.nuget.g.props b/Test/obj/Test.csproj.nuget.g.props index 2925485..3d8be40 100644 --- a/Test/obj/Test.csproj.nuget.g.props +++ b/Test/obj/Test.csproj.nuget.g.props @@ -7,7 +7,7 @@ /Users/irmadzemidzic/.nuget/packages/ /Users/irmadzemidzic/.nuget/packages/ PackageReference - 6.3.1 + 6.4.0 diff --git a/Test/obj/project.assets.json b/Test/obj/project.assets.json index 2531f74..792355f 100644 --- a/Test/obj/project.assets.json +++ b/Test/obj/project.assets.json @@ -6061,7 +6061,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/7.0.100/RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/7.0.200/RuntimeIdentifierGraph.json" } } } diff --git a/Test/obj/project.nuget.cache b/Test/obj/project.nuget.cache index 06f390c..8bbc7f7 100644 --- a/Test/obj/project.nuget.cache +++ b/Test/obj/project.nuget.cache @@ -1,6 +1,6 @@ { "version": 2, - "dgSpecHash": "E4m49csFIS2W9uPs6fTmIKkPExzohhYc5HY7EBjobz4ilg7i0WK8U3trUxoaO53IFDRWvLfJHrM/Ht34+2NITw==", + "dgSpecHash": "w3bcz/GtNt+QWxDU/6n8SYqGKzLXGCk+Gm+m8GONJVXr1pW/NADjJAHJlpalu9y3485tZ/bIZOFKmpOZ9r9B2w==", "success": true, "projectFilePath": "/Users/irmadzemidzic/CSTesting/Test/Test.csproj", "expectedPackageFiles": [