static void Main(string[] args) { var validator = new NSagaConfigurationValidator(new[] { typeof(VerySimpleSaga).Assembly }); validator.AssertConfigurationIsValid(); // exceptions should be thrown in case of errors Console.WriteLine("Validation is complete"); Console.ReadKey(); }
public void MethodName_StateUnderTests_ExpectedBehaviour() { //Arrange var sut = new NSagaConfigurationValidator(AppDomain.CurrentDomain.GetAssemblies()); // Act Action act = () => sut.AssertConfigurationIsValid(); // Assert act.ShouldThrow <AggregateException>(); }
public void MethodName_StateUnderTests_ExpectedBehaviour() { //Arrange var sut = new NSagaConfigurationValidator(new[] { Assembly.GetExecutingAssembly() }); // Act Action act = () => sut.AssertConfigurationIsValid(); // Assert act.ShouldThrow <AggregateException>(); }