Exemplo n.º 1
0
        public static void RunTest(EventCollection eventCollection, EventExpressionCase caseExpr, Type testClass, String testMethod)
        {
            var caseList = new CaseList();

            caseList.AddTest(caseExpr);

            var patternTestHarness = new PatternTestHarness(eventCollection, caseList, testClass, testMethod);

            patternTestHarness.RunTest();
        }
Exemplo n.º 2
0
        public static void RunTest(EventCollection eventCollection, EventExpressionCase caseExpr, Type testClass)
        {
            var caseList = new CaseList();

            caseList.AddTest(caseExpr);

            var config          = SupportConfigFactory.GetConfiguration();
            var serviceProvider = EPServiceProviderManager.GetDefaultProvider(config);

            serviceProvider.Initialize();

            var patternTestHarness = new PatternTestHarness(eventCollection, caseList, testClass);

            patternTestHarness.RunTest(serviceProvider);
        }