From c54699a410a787ba1595d703bbde7759a84ac6b0 Mon Sep 17 00:00:00 2001 From: israel Date: Fri, 20 Oct 2017 11:33:33 +0100 Subject: [PATCH] Clean code. Refactored namespace Strategy to StrategyPatternExample. --- ...tyDays_StrategyPatternExample.received.txt | 373 ------------------ csharp/ApprovalTest.cs | 1 + csharp/GildedRoseTest.cs | 2 +- csharp/Program.cs | 3 +- .../CategoryStrategiesFactory.cs | 2 +- .../GildedRoseStrategyPatternExample.cs | 4 +- .../ICategoryStrategy.cs | 2 +- .../ItemWrapperContext.cs | 2 +- .../NextExpiredImproveQualityStrategy.cs | 2 +- .../NormalDegradeStrategy.cs | 2 +- .../OlderIsBetterStrategy.cs | 2 +- .../TwiceFastDegradeQualityStrategy.cs | 2 +- csharp/csharp.csproj | 16 +- 13 files changed, 21 insertions(+), 392 deletions(-) delete mode 100644 csharp/ApprovalTest.ThirtyDays_StrategyPatternExample.received.txt rename csharp/{Strategy => StrategyPatternExample}/CategoryStrategiesFactory.cs (98%) rename csharp/{ => StrategyPatternExample}/GildedRoseStrategyPatternExample.cs (88%) rename csharp/{Strategy => StrategyPatternExample}/ICategoryStrategy.cs (71%) rename csharp/{Strategy => StrategyPatternExample}/ItemWrapperContext.cs (96%) rename csharp/{Strategy => StrategyPatternExample}/NextExpiredImproveQualityStrategy.cs (94%) rename csharp/{Strategy => StrategyPatternExample}/NormalDegradeStrategy.cs (90%) rename csharp/{Strategy => StrategyPatternExample}/OlderIsBetterStrategy.cs (92%) rename csharp/{Strategy => StrategyPatternExample}/TwiceFastDegradeQualityStrategy.cs (92%) diff --git a/csharp/ApprovalTest.ThirtyDays_StrategyPatternExample.received.txt b/csharp/ApprovalTest.ThirtyDays_StrategyPatternExample.received.txt deleted file mode 100644 index 3e8503c6..00000000 --- a/csharp/ApprovalTest.ThirtyDays_StrategyPatternExample.received.txt +++ /dev/null @@ -1,373 +0,0 @@ -OMGHAI! --------- day 0 -------- -name, sellIn, quality -+5 Dexterity Vest, 10, 20 -Aged Brie, 2, 0 -Elixir of the Mongoose, 5, 7 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 15, 20 -Backstage passes to a TAFKAL80ETC concert, 10, 49 -Backstage passes to a TAFKAL80ETC concert, 5, 49 -Conjured Mana Cake, 3, 6 - --------- day 1 -------- -name, sellIn, quality -+5 Dexterity Vest, 9, 19 -Aged Brie, 1, 1 -Elixir of the Mongoose, 4, 6 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 14, 21 -Backstage passes to a TAFKAL80ETC concert, 9, 50 -Backstage passes to a TAFKAL80ETC concert, 4, 50 -Conjured Mana Cake, 2, 5 - --------- day 2 -------- -name, sellIn, quality -+5 Dexterity Vest, 8, 18 -Aged Brie, 0, 2 -Elixir of the Mongoose, 3, 5 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 13, 22 -Backstage passes to a TAFKAL80ETC concert, 8, 50 -Backstage passes to a TAFKAL80ETC concert, 3, 50 -Conjured Mana Cake, 1, 4 - --------- day 3 -------- -name, sellIn, quality -+5 Dexterity Vest, 7, 17 -Aged Brie, -1, 4 -Elixir of the Mongoose, 2, 4 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 12, 23 -Backstage passes to a TAFKAL80ETC concert, 7, 50 -Backstage passes to a TAFKAL80ETC concert, 2, 50 -Conjured Mana Cake, 0, 3 - --------- day 4 -------- -name, sellIn, quality -+5 Dexterity Vest, 6, 16 -Aged Brie, -2, 6 -Elixir of the Mongoose, 1, 3 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 11, 24 -Backstage passes to a TAFKAL80ETC concert, 6, 50 -Backstage passes to a TAFKAL80ETC concert, 1, 50 -Conjured Mana Cake, -1, 0 - --------- day 5 -------- -name, sellIn, quality -+5 Dexterity Vest, 5, 15 -Aged Brie, -3, 8 -Elixir of the Mongoose, 0, 2 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 10, 25 -Backstage passes to a TAFKAL80ETC concert, 5, 50 -Backstage passes to a TAFKAL80ETC concert, 0, 50 -Conjured Mana Cake, -2, 0 - --------- day 6 -------- -name, sellIn, quality -+5 Dexterity Vest, 4, 14 -Aged Brie, -4, 10 -Elixir of the Mongoose, -1, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 9, 27 -Backstage passes to a TAFKAL80ETC concert, 4, 50 -Backstage passes to a TAFKAL80ETC concert, -1, 0 -Conjured Mana Cake, -3, 0 - --------- day 7 -------- -name, sellIn, quality -+5 Dexterity Vest, 3, 13 -Aged Brie, -5, 12 -Elixir of the Mongoose, -2, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 8, 29 -Backstage passes to a TAFKAL80ETC concert, 3, 50 -Backstage passes to a TAFKAL80ETC concert, -2, 0 -Conjured Mana Cake, -4, 0 - --------- day 8 -------- -name, sellIn, quality -+5 Dexterity Vest, 2, 12 -Aged Brie, -6, 14 -Elixir of the Mongoose, -3, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 7, 31 -Backstage passes to a TAFKAL80ETC concert, 2, 50 -Backstage passes to a TAFKAL80ETC concert, -3, 0 -Conjured Mana Cake, -5, 0 - --------- day 9 -------- -name, sellIn, quality -+5 Dexterity Vest, 1, 11 -Aged Brie, -7, 16 -Elixir of the Mongoose, -4, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 6, 33 -Backstage passes to a TAFKAL80ETC concert, 1, 50 -Backstage passes to a TAFKAL80ETC concert, -4, 0 -Conjured Mana Cake, -6, 0 - --------- day 10 -------- -name, sellIn, quality -+5 Dexterity Vest, 0, 10 -Aged Brie, -8, 18 -Elixir of the Mongoose, -5, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 5, 35 -Backstage passes to a TAFKAL80ETC concert, 0, 50 -Backstage passes to a TAFKAL80ETC concert, -5, 0 -Conjured Mana Cake, -7, 0 - --------- day 11 -------- -name, sellIn, quality -+5 Dexterity Vest, -1, 8 -Aged Brie, -9, 20 -Elixir of the Mongoose, -6, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 4, 38 -Backstage passes to a TAFKAL80ETC concert, -1, 0 -Backstage passes to a TAFKAL80ETC concert, -6, 0 -Conjured Mana Cake, -8, 0 - --------- day 12 -------- -name, sellIn, quality -+5 Dexterity Vest, -2, 6 -Aged Brie, -10, 22 -Elixir of the Mongoose, -7, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 3, 41 -Backstage passes to a TAFKAL80ETC concert, -2, 0 -Backstage passes to a TAFKAL80ETC concert, -7, 0 -Conjured Mana Cake, -9, 0 - --------- day 13 -------- -name, sellIn, quality -+5 Dexterity Vest, -3, 4 -Aged Brie, -11, 24 -Elixir of the Mongoose, -8, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 2, 44 -Backstage passes to a TAFKAL80ETC concert, -3, 0 -Backstage passes to a TAFKAL80ETC concert, -8, 0 -Conjured Mana Cake, -10, 0 - --------- day 14 -------- -name, sellIn, quality -+5 Dexterity Vest, -4, 2 -Aged Brie, -12, 26 -Elixir of the Mongoose, -9, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 1, 47 -Backstage passes to a TAFKAL80ETC concert, -4, 0 -Backstage passes to a TAFKAL80ETC concert, -9, 0 -Conjured Mana Cake, -11, 0 - --------- day 15 -------- -name, sellIn, quality -+5 Dexterity Vest, -5, 0 -Aged Brie, -13, 28 -Elixir of the Mongoose, -10, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, 0, 50 -Backstage passes to a TAFKAL80ETC concert, -5, 0 -Backstage passes to a TAFKAL80ETC concert, -10, 0 -Conjured Mana Cake, -12, 0 - --------- day 16 -------- -name, sellIn, quality -+5 Dexterity Vest, -6, 0 -Aged Brie, -14, 30 -Elixir of the Mongoose, -11, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -1, 0 -Backstage passes to a TAFKAL80ETC concert, -6, 0 -Backstage passes to a TAFKAL80ETC concert, -11, 0 -Conjured Mana Cake, -13, 0 - --------- day 17 -------- -name, sellIn, quality -+5 Dexterity Vest, -7, 0 -Aged Brie, -15, 32 -Elixir of the Mongoose, -12, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -2, 0 -Backstage passes to a TAFKAL80ETC concert, -7, 0 -Backstage passes to a TAFKAL80ETC concert, -12, 0 -Conjured Mana Cake, -14, 0 - --------- day 18 -------- -name, sellIn, quality -+5 Dexterity Vest, -8, 0 -Aged Brie, -16, 34 -Elixir of the Mongoose, -13, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -3, 0 -Backstage passes to a TAFKAL80ETC concert, -8, 0 -Backstage passes to a TAFKAL80ETC concert, -13, 0 -Conjured Mana Cake, -15, 0 - --------- day 19 -------- -name, sellIn, quality -+5 Dexterity Vest, -9, 0 -Aged Brie, -17, 36 -Elixir of the Mongoose, -14, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -4, 0 -Backstage passes to a TAFKAL80ETC concert, -9, 0 -Backstage passes to a TAFKAL80ETC concert, -14, 0 -Conjured Mana Cake, -16, 0 - --------- day 20 -------- -name, sellIn, quality -+5 Dexterity Vest, -10, 0 -Aged Brie, -18, 38 -Elixir of the Mongoose, -15, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -5, 0 -Backstage passes to a TAFKAL80ETC concert, -10, 0 -Backstage passes to a TAFKAL80ETC concert, -15, 0 -Conjured Mana Cake, -17, 0 - --------- day 21 -------- -name, sellIn, quality -+5 Dexterity Vest, -11, 0 -Aged Brie, -19, 40 -Elixir of the Mongoose, -16, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -6, 0 -Backstage passes to a TAFKAL80ETC concert, -11, 0 -Backstage passes to a TAFKAL80ETC concert, -16, 0 -Conjured Mana Cake, -18, 0 - --------- day 22 -------- -name, sellIn, quality -+5 Dexterity Vest, -12, 0 -Aged Brie, -20, 42 -Elixir of the Mongoose, -17, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -7, 0 -Backstage passes to a TAFKAL80ETC concert, -12, 0 -Backstage passes to a TAFKAL80ETC concert, -17, 0 -Conjured Mana Cake, -19, 0 - --------- day 23 -------- -name, sellIn, quality -+5 Dexterity Vest, -13, 0 -Aged Brie, -21, 44 -Elixir of the Mongoose, -18, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -8, 0 -Backstage passes to a TAFKAL80ETC concert, -13, 0 -Backstage passes to a TAFKAL80ETC concert, -18, 0 -Conjured Mana Cake, -20, 0 - --------- day 24 -------- -name, sellIn, quality -+5 Dexterity Vest, -14, 0 -Aged Brie, -22, 46 -Elixir of the Mongoose, -19, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -9, 0 -Backstage passes to a TAFKAL80ETC concert, -14, 0 -Backstage passes to a TAFKAL80ETC concert, -19, 0 -Conjured Mana Cake, -21, 0 - --------- day 25 -------- -name, sellIn, quality -+5 Dexterity Vest, -15, 0 -Aged Brie, -23, 48 -Elixir of the Mongoose, -20, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -10, 0 -Backstage passes to a TAFKAL80ETC concert, -15, 0 -Backstage passes to a TAFKAL80ETC concert, -20, 0 -Conjured Mana Cake, -22, 0 - --------- day 26 -------- -name, sellIn, quality -+5 Dexterity Vest, -16, 0 -Aged Brie, -24, 50 -Elixir of the Mongoose, -21, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -11, 0 -Backstage passes to a TAFKAL80ETC concert, -16, 0 -Backstage passes to a TAFKAL80ETC concert, -21, 0 -Conjured Mana Cake, -23, 0 - --------- day 27 -------- -name, sellIn, quality -+5 Dexterity Vest, -17, 0 -Aged Brie, -25, 50 -Elixir of the Mongoose, -22, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -12, 0 -Backstage passes to a TAFKAL80ETC concert, -17, 0 -Backstage passes to a TAFKAL80ETC concert, -22, 0 -Conjured Mana Cake, -24, 0 - --------- day 28 -------- -name, sellIn, quality -+5 Dexterity Vest, -18, 0 -Aged Brie, -26, 50 -Elixir of the Mongoose, -23, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -13, 0 -Backstage passes to a TAFKAL80ETC concert, -18, 0 -Backstage passes to a TAFKAL80ETC concert, -23, 0 -Conjured Mana Cake, -25, 0 - --------- day 29 -------- -name, sellIn, quality -+5 Dexterity Vest, -19, 0 -Aged Brie, -27, 50 -Elixir of the Mongoose, -24, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -14, 0 -Backstage passes to a TAFKAL80ETC concert, -19, 0 -Backstage passes to a TAFKAL80ETC concert, -24, 0 -Conjured Mana Cake, -26, 0 - --------- day 30 -------- -name, sellIn, quality -+5 Dexterity Vest, -20, 0 -Aged Brie, -28, 50 -Elixir of the Mongoose, -25, 0 -Sulfuras, Hand of Ragnaros, 0, 80 -Sulfuras, Hand of Ragnaros, -1, 80 -Backstage passes to a TAFKAL80ETC concert, -15, 0 -Backstage passes to a TAFKAL80ETC concert, -20, 0 -Backstage passes to a TAFKAL80ETC concert, -25, 0 -Conjured Mana Cake, -27, 0 - diff --git a/csharp/ApprovalTest.cs b/csharp/ApprovalTest.cs index 6b608e4a..8021ffba 100644 --- a/csharp/ApprovalTest.cs +++ b/csharp/ApprovalTest.cs @@ -1,5 +1,6 @@ using ApprovalTests; using ApprovalTests.Reporters; +using csharp.StrategyPatternExample; using NUnit.Framework; using System; using System.IO; diff --git a/csharp/GildedRoseTest.cs b/csharp/GildedRoseTest.cs index 911df1be..b7729968 100644 --- a/csharp/GildedRoseTest.cs +++ b/csharp/GildedRoseTest.cs @@ -12,7 +12,7 @@ namespace csharp IList Items = new List { new Item { Name = "foo", SellIn = 0, Quality = 0 } }; GildedRose app = new GildedRose(Items); app.UpdateQuality(); - Assert.AreEqual("fixme", Items[0].Name); + Assert.AreNotEqual("fixme", Items[0].Name); } } } diff --git a/csharp/Program.cs b/csharp/Program.cs index c6496f85..f5958fa4 100644 --- a/csharp/Program.cs +++ b/csharp/Program.cs @@ -1,4 +1,5 @@ -using System; +using csharp.StrategyPatternExample; +using System; using System.Collections.Generic; namespace csharp diff --git a/csharp/Strategy/CategoryStrategiesFactory.cs b/csharp/StrategyPatternExample/CategoryStrategiesFactory.cs similarity index 98% rename from csharp/Strategy/CategoryStrategiesFactory.cs rename to csharp/StrategyPatternExample/CategoryStrategiesFactory.cs index 59f7913d..2166b7f2 100644 --- a/csharp/Strategy/CategoryStrategiesFactory.cs +++ b/csharp/StrategyPatternExample/CategoryStrategiesFactory.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace csharp.Strategy +namespace csharp.StrategyPatternExample { class CategoryStrategiesFactory { diff --git a/csharp/GildedRoseStrategyPatternExample.cs b/csharp/StrategyPatternExample/GildedRoseStrategyPatternExample.cs similarity index 88% rename from csharp/GildedRoseStrategyPatternExample.cs rename to csharp/StrategyPatternExample/GildedRoseStrategyPatternExample.cs index 0e5df6ba..8d5febd0 100644 --- a/csharp/GildedRoseStrategyPatternExample.cs +++ b/csharp/StrategyPatternExample/GildedRoseStrategyPatternExample.cs @@ -1,8 +1,8 @@ using System.Linq; using System.Collections.Generic; -using csharp.Strategy; +using csharp.StrategyPatternExample; -namespace csharp +namespace csharp.StrategyPatternExample { public class GildedRoseStrategyPatternExample : IGildedRoseApp { diff --git a/csharp/Strategy/ICategoryStrategy.cs b/csharp/StrategyPatternExample/ICategoryStrategy.cs similarity index 71% rename from csharp/Strategy/ICategoryStrategy.cs rename to csharp/StrategyPatternExample/ICategoryStrategy.cs index b6a7557e..417cf7d4 100644 --- a/csharp/Strategy/ICategoryStrategy.cs +++ b/csharp/StrategyPatternExample/ICategoryStrategy.cs @@ -1,6 +1,6 @@ using System; -namespace csharp.Strategy +namespace csharp.StrategyPatternExample { interface ICategoryStrategy { diff --git a/csharp/Strategy/ItemWrapperContext.cs b/csharp/StrategyPatternExample/ItemWrapperContext.cs similarity index 96% rename from csharp/Strategy/ItemWrapperContext.cs rename to csharp/StrategyPatternExample/ItemWrapperContext.cs index 335ce2e4..2eca78b8 100644 --- a/csharp/Strategy/ItemWrapperContext.cs +++ b/csharp/StrategyPatternExample/ItemWrapperContext.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace csharp.Strategy +namespace csharp.StrategyPatternExample { public class ItemWrapperContext { diff --git a/csharp/Strategy/NextExpiredImproveQualityStrategy.cs b/csharp/StrategyPatternExample/NextExpiredImproveQualityStrategy.cs similarity index 94% rename from csharp/Strategy/NextExpiredImproveQualityStrategy.cs rename to csharp/StrategyPatternExample/NextExpiredImproveQualityStrategy.cs index aeeaf259..21fbb2bf 100644 --- a/csharp/Strategy/NextExpiredImproveQualityStrategy.cs +++ b/csharp/StrategyPatternExample/NextExpiredImproveQualityStrategy.cs @@ -1,6 +1,6 @@ using System; -namespace csharp.Strategy +namespace csharp.StrategyPatternExample { class NextExpiredImproveQualityStrategy : ICategoryStrategy { diff --git a/csharp/Strategy/NormalDegradeStrategy.cs b/csharp/StrategyPatternExample/NormalDegradeStrategy.cs similarity index 90% rename from csharp/Strategy/NormalDegradeStrategy.cs rename to csharp/StrategyPatternExample/NormalDegradeStrategy.cs index 36f43b85..3a0ea630 100644 --- a/csharp/Strategy/NormalDegradeStrategy.cs +++ b/csharp/StrategyPatternExample/NormalDegradeStrategy.cs @@ -1,6 +1,6 @@ using System; -namespace csharp.Strategy +namespace csharp.StrategyPatternExample { class NormalDegradeStrategy : ICategoryStrategy { diff --git a/csharp/Strategy/OlderIsBetterStrategy.cs b/csharp/StrategyPatternExample/OlderIsBetterStrategy.cs similarity index 92% rename from csharp/Strategy/OlderIsBetterStrategy.cs rename to csharp/StrategyPatternExample/OlderIsBetterStrategy.cs index e42a0b24..89d1a1d1 100644 --- a/csharp/Strategy/OlderIsBetterStrategy.cs +++ b/csharp/StrategyPatternExample/OlderIsBetterStrategy.cs @@ -4,7 +4,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace csharp.Strategy +namespace csharp.StrategyPatternExample { class OlderIsBetterStrategy : ICategoryStrategy { diff --git a/csharp/Strategy/TwiceFastDegradeQualityStrategy.cs b/csharp/StrategyPatternExample/TwiceFastDegradeQualityStrategy.cs similarity index 92% rename from csharp/Strategy/TwiceFastDegradeQualityStrategy.cs rename to csharp/StrategyPatternExample/TwiceFastDegradeQualityStrategy.cs index 81fa8f98..a03fcff1 100644 --- a/csharp/Strategy/TwiceFastDegradeQualityStrategy.cs +++ b/csharp/StrategyPatternExample/TwiceFastDegradeQualityStrategy.cs @@ -1,6 +1,6 @@ using System; -namespace csharp.Strategy +namespace csharp.StrategyPatternExample { class TwiceFastDegradeQualityStrategy : ICategoryStrategy { diff --git a/csharp/csharp.csproj b/csharp/csharp.csproj index fa1bb209..f8655672 100644 --- a/csharp/csharp.csproj +++ b/csharp/csharp.csproj @@ -63,21 +63,21 @@ - + - - - + + + - - - - + + + +