示例#1
0
        public void Main(SolutionFactory Factory)
        {
            ICounter obj = GetCounterObj(Factory);

            Console.WriteLine(obj.ToString());
            ToChangeCounter(obj);
            Console.WriteLine("Two time increase of counter");
            obj.Inc();
            obj.Inc();
            Console.WriteLine("One time decrease of counter");
            obj.Dec();
            Console.WriteLine($"Current value of counter - {obj.Current}");
        }