Skip to content

Commit faa90b1

Browse files
committed
#8092 Remove unused singleton classes
1 parent f9fc713 commit faa90b1

File tree

3 files changed

+0
-67
lines changed

3 files changed

+0
-67
lines changed

src/Libraries/Nop.Core/Infrastructure/SingletonDictionary.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Libraries/Nop.Core/Infrastructure/SingletonList.cs

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Tests/Nop.Tests/Nop.Core.Tests/Infrastructure/SingletonTests.cs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,4 @@ public void SingletonsShareSameSingletonsDictionary()
2424
BaseSingleton.AllSingletons[typeof(int)].Should().Be(1);
2525
BaseSingleton.AllSingletons[typeof(double)].Should().Be(2.0M);
2626
}
27-
28-
[Test]
29-
public void SingletonDictionaryIsCreatedByDefault()
30-
{
31-
var instance = SingletonDictionary<SingletonTests, object>.Instance;
32-
instance.Should().NotBeNull();
33-
}
34-
35-
[Test]
36-
public void SingletonDictionaryCanStoreStuff()
37-
{
38-
var instance = SingletonDictionary<Type, SingletonTests>.Instance;
39-
instance[typeof(SingletonTests)] = this;
40-
instance[typeof(SingletonTests)].Should().BeSameAs(this);
41-
}
42-
43-
[Test]
44-
public void SingletonListIsCreatedByDefault()
45-
{
46-
var instance = SingletonList<SingletonTests>.Instance;
47-
instance.Should().NotBeNull();
48-
}
49-
50-
[Test]
51-
public void SingletonListCanStoreItems()
52-
{
53-
var instance = SingletonList<SingletonTests>.Instance;
54-
instance.Insert(0, this);
55-
instance[0].Should().BeSameAs(this);
56-
}
5727
}

0 commit comments

Comments
 (0)