Пример #1
0
        public void Execute()
        {
            var TempOperation = new Utilities.Workflow.Manager.GenericOperation <dynamic>(x => x);

            Assert.Equal(1, TempOperation.Execute(1));
            Assert.Equal("A", TempOperation.Execute("A"));
        }
 public void StartFailedOperation()
 {
     var TempOperation = new Utilities.Workflow.Manager.GenericOperation<dynamic>(x => { throw new ArgumentException("ASDF"); });
     Assert.Throws<ArgumentException>(() => TempOperation.Execute(1));
 }
 public void Execute()
 {
     var TempOperation = new Utilities.Workflow.Manager.GenericOperation<dynamic>(x => x);
     Assert.Equal(1, TempOperation.Execute(1));
     Assert.Equal("A", TempOperation.Execute("A"));
 }
Пример #4
0
        public void StartFailedOperation()
        {
            var TempOperation = new Utilities.Workflow.Manager.GenericOperation <dynamic>(x => { throw new ArgumentException("ASDF"); });

            Assert.Throws <ArgumentException>(() => TempOperation.Execute(1));
        }