I have a class which makes it easier to run automated tests of order processing.
The class has properties and methods to allow different order settings to be specified, then a method is called to run the test and some objects returned to allow confirmation that the test was successful.
I want to know what pattern this might be so I can give the class a helpful name (I've been reading through the various patterns and I can't really identify a good match).
Examples:
var sut = new Tester().WithMugInCart().WithCreditCardPurchase().WithPurchaseSuccessful();
var result = sut.RunTest();
Assert.IsTrue(result.Order.Successful);
etc
so with the Chain of Responsibility would a helpful suffix be "Handler" and the name something like "OrderProcessingTestHandler" and the method to run the test "Execute"?
var sut = new Tester().WithMugInCart().WithCreditCardPurchase().WithPurchaseSuccessful();
As you can see, you're building the process that the automation has to go through by chaining multiple methods to it. This could potentially be the Chain of Responsibility pattern (not to confuse with creation pattern the Builder Pattern). You're creating the "request" (which is the Tester class) and immediately run through a chain of instructions, thus gives you the flexibility to choose which automation test to run at a specific sequence.
Also, it seems like you're inheriting a characteristic from the builder pattern where each method returns the current instance which then allows you to continue and chain them into a specific sequence.