private void RunAssertionSameProviderGroupedReturnSingleEvent(EPServiceProvider epService) { string epl = "select se1() as c0, se2() as c1 from SupportBean#keepall group by TheString"; // test regular SupportAggMFFactory.Reset(); SupportAggMFHandler.Reset(); SupportAggMFFactorySingleEvent.Reset(); EPStatement stmt = epService.EPAdministrator.CreateEPL(epl); TryAssertion(epService, stmt); // test SODA EPStatementObjectModel model = epService.EPAdministrator.CompileEPL(epl); SupportAggMFFactory.Reset(); SupportAggMFHandler.Reset(); SupportAggMFFactorySingleEvent.Reset(); Assert.AreEqual(epl, model.ToEPL()); EPStatement stmtModel = epService.EPAdministrator.Create(model); Assert.AreEqual(epl, stmtModel.Text); TryAssertion(epService, stmtModel); }
public void TestSameProviderGroupedReturnSingleEvent() { const string epl = "select se1() as c0, se2() as c1 from SupportBean.win:keepall() group by TheString"; // test regular SupportAggMFFactory.Reset(); SupportAggMFHandler.Reset(); SupportAggMFFactorySingleEvent.Reset(); var stmt = _epService.EPAdministrator.CreateEPL(epl); RunAssertion(stmt); // test SODA var model = _epService.EPAdministrator.CompileEPL(epl); SupportAggMFFactory.Reset(); SupportAggMFHandler.Reset(); SupportAggMFFactorySingleEvent.Reset(); Assert.AreEqual(epl, model.ToEPL()); var stmtModel = _epService.EPAdministrator.Create(model); Assert.AreEqual(epl, stmtModel.Text); RunAssertion(stmtModel); }