-
Notifications
You must be signed in to change notification settings - Fork 19
Diagnostics
trailmax edited this page Nov 24, 2016
·
4 revisions
To verify that all your sagas are configured correctly, you can run a diagnostic on your assemblies:
var validator = new NSagaConfigurationValidator(new[] { typeof(VerySimpleSaga).Assembly });
validator.AssertConfigurationIsValid();
Validator goes through all saga classes in the provided assembly and checks for the following things:
- All sagas have an initiator message
- Messages are not shared between the sagas
It is recommended to have this validation executed as one of the unit tests for your CI server. In case of errors in your classes configuration, AggregateException
will be thrown with the list of problems in the child collection of exceptions.