示例#1
0
 public void Setup()
 {
     var cfg = new EngineConfiguration().ForIsolatedTest();
     _engine = Engine.Create<ProxyExceptionTestModel>(cfg);
     _proxy = _engine.GetProxy();
     _callsToExecuting = 0;
     _callsToExecuted = 0;
     _engine.CommandExecuting += (sender, args) => _callsToExecuting++;
     _engine.CommandExecuted += (sender, args) => _callsToExecuted++;
 }
示例#2
0
        public void Setup()
        {
            var cfg = new EngineConfiguration().ForIsolatedTest();

            _engine                   = Engine.Create <ProxyExceptionTestModel>(cfg);
            _proxy                    = _engine.GetProxy();
            _callsToExecuting         = 0;
            _callsToExecuted          = 0;
            _engine.CommandExecuting += (sender, args) => _callsToExecuting++;
            _engine.CommandExecuted  += (sender, args) => _callsToExecuted++;
        }