Example #1
0
        public virtual void assertEventSubscriptionMigrated(string activityIdBefore, string activityIdAfter, string eventName)
        {
            EventSubscription eventSubscriptionBefore = snapshotBeforeMigration.getEventSubscriptionForActivityIdAndEventName(activityIdBefore, eventName);

            assertNotNull("Expected that an event subscription for activity '" + activityIdBefore + "' exists before migration", eventSubscriptionBefore);

            assertEventSubscriptionMigrated(eventSubscriptionBefore, activityIdAfter, eventName);
        }
Example #2
0
        public virtual void assertEventSubscriptionCreated(string activityId, string eventName)
        {
            EventSubscription eventSubscriptionAfter = snapshotAfterMigration.getEventSubscriptionForActivityIdAndEventName(activityId, eventName);

            assertNotNull("Expected an event subscription for activity '" + activityId + "' after the migration", eventSubscriptionAfter);

            foreach (EventSubscription eventSubscription in snapshotBeforeMigration.EventSubscriptions)
            {
                if (eventSubscriptionAfter.Id.Equals(eventSubscription.Id))
                {
                    fail("Expected event subscription '" + eventSubscriptionAfter.Id + "' to be created after migration");
                }
            }
        }