Esempio n. 1
0
        static MockTestController()
        {
            var mockEngineFactory = new MockEngineFactory();

            mockEngineFactory.Initialize(MockEngineConfigurationSettings.Settings);
            _mockEngine = mockEngineFactory.CreateMockEngine("Test1");
        }
Esempio n. 2
0
        public MockMessageHandler(IMockHandlerSettings settings = null)
        {
            if (settings == null)
            {
                _settings = MockMessageHandlerSettings.Settings;
            }
            else
            {
                _settings = settings;
            }

            _whenMatcher = new Regex(_settings.When, RegexOptions.Compiled | RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace | RegexOptions.Singleline);
            var mockEngineFactory = new MockEngineFactory();

            mockEngineFactory.Initialize(_settings);
            _mockEngine = mockEngineFactory.CreateMockEngine(_settings.Name);
        }