Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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>();
        }