コード例 #1
0
        private void SendSupportBeanEvent(String stringValue,
                                          SupportEnum supportEnum)
        {
            var theEvent = new SupportBeanWithEnum(stringValue, supportEnum);

            _epService.EPRuntime.SendEvent(theEvent);
        }
コード例 #2
0
ファイル: TestSubscriberBind.cs プロジェクト: valmac/nesper
        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
ファイル: TestSubscriberBind.cs プロジェクト: ikvm/nesper
        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);
        }