Esempio n. 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++;
 }
Esempio n. 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++;
        }