Inheritance: Infrastucture.TermEnvironment
示例#1
0
        internal static void Main()
        {
            var environment = new TermEnvironmentDecorator(new FakeRepository(), new User());

            environment.CurrentTerm.AddOperation(new Operation());
            environment.StartNewTerm();

            try
            {
                environment.StartNewTerm();
            }
            catch (TermException)
            {
                Console.WriteLine("CurrentTerm Must Contain Operations");
            }

            environment.CurrentTerm.AddOperation(new Operation());
            environment.StartNewTerm();
        }
示例#2
0
        internal static void Main()
        {
            var environment = new TermEnvironmentDecorator(new FakeRepository(), new User());

            environment.CurrentTerm.AddOperation(new Operation());
            environment.StartNewTerm();

            try
            {
                environment.StartNewTerm();
            }
            catch (TermException)
            {
                Console.WriteLine("CurrentTerm Must Contain Operations");
            }

            environment.CurrentTerm.AddOperation(new Operation());
            environment.StartNewTerm();
        }