예제 #1
0
        private void SendSupportBeanEvent(String stringValue,
                                          SupportEnum supportEnum)
        {
            var theEvent = new SupportBeanWithEnum(stringValue, supportEnum);

            _epService.EPRuntime.SendEvent(theEvent);
        }
예제 #2
0
        private void RunAssertionEnum(EPStatement stmtEnum, SupportSubscriberRowByRowSpecificBase subscriber)
        {
            stmtEnum.Subscriber = subscriber;

            var theEvent = new SupportBeanWithEnum("abc", SupportEnum.ENUM_VALUE_1);

            _epService.EPRuntime.SendEvent(theEvent);
            subscriber.AssertOneReceivedAndReset(stmtEnum, new object[] { theEvent.TheString, theEvent.SupportEnum });
        }
예제 #3
0
        private static void SendSupportBeanEvent(
            RegressionEnvironment env,
            string theString,
            SupportEnum supportEnum)
        {
            var theEvent = new SupportBeanWithEnum(theString, supportEnum);

            env.SendEventBean(theEvent);
        }
예제 #4
0
        public void TestEnum()
        {
            var         subscriber = new MySubscriberRowByRowSpecific();
            EPStatement stmt       = _epService.EPAdministrator.CreateEPL(
                "select TheString, supportEnum from SupportBeanWithEnum");

            stmt.Subscriber = subscriber;

            var theEvent = new SupportBeanWithEnum("abc",
                                                   SupportEnum.ENUM_VALUE_1);

            _epService.EPRuntime.SendEvent(theEvent);
            EPAssertionUtil.AssertEqualsExactOrder(new Object[]
            {
                theEvent.TheString, theEvent.SupportEnum
            }
                                                   , subscriber.GetAndResetIndicate()[0]);
        }
예제 #5
0
        private void SendSupportBeanEvent(EPServiceProvider epService, string theString, SupportEnum supportEnum)
        {
            var theEvent = new SupportBeanWithEnum(theString, supportEnum);

            epService.EPRuntime.SendEvent(theEvent);
        }