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); }
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"); } } }