private static ExceptionManager Build()
 {
     return(ExceptionManagerBuilder
            .Configure()
            .WithExceptionPolicyDefinition(GetDefinition())
            .Build());
 }
            public void Configure_Creates_A_New_Instance_Of_ExceptionManagerBuilder()
            {
                var result = ExceptionManagerBuilder.Configure();

                Assert.IsNotNull(result);
                Assert.IsInstanceOfType(result, typeof(ExceptionManagerBuilder));
            }
            public void WithExceptionHandler_Returns_Same_ExceptionManagerBuilder()
            {
                var exceptionManagerBuilder = ExceptionManagerBuilder.Configure();

                Assert.AreSame(
                    exceptionManagerBuilder,
                    exceptionManagerBuilder.WithExceptionPolicyDefinition(GetDefinition()));
            }
            public void WithExceptionPolicyDefinition_Returns_An_Instance_Of_ExceptionManagerBuilder()
            {
                var result = ExceptionManagerBuilder.
                             Configure()
                             .WithExceptionPolicyDefinition(GetDefinition());

                Assert.IsNotNull(result);
                Assert.IsInstanceOfType(result, typeof(ExceptionManagerBuilder));
            }