Esempio n. 1
0
        protected internal virtual void transformSentries(Stage stage)
        {
            ICollection <Sentry> sentries = stage.Sentrys;

            if (sentries != null && sentries.Count > 0)
            {
                SentryHandler handler = SentryHandler;
                foreach (Sentry sentry in sentries)
                {
                    handler.handleElement(sentry, context);
                }
            }
        }
Esempio n. 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testSentry()
        public virtual void testSentry()
        {
            // given

            // when
            CmmnSentryDeclaration sentryDeclaration = sentryHandler.handleElement(sentry, context);

            // then
            assertNotNull(sentryDeclaration);

            assertEquals(sentry.Id, sentryDeclaration.Id);

            assertNull(sentryDeclaration.IfPart);
            assertTrue(sentryDeclaration.OnParts.Count == 0);
        }