Exemplo n.º 1
0
        public void SingletonTest()
        {
            // The client code.
            var s1 = SingletonPattern.GetInstance();
            var s2 = SingletonPattern.GetInstance();

            s1.Should().Be(s2);
            s1.DoSomeBusinessLogic();
        }