DixieSequentialChaosProvider Class Reference
Inherits from | DixieBaseChaosProvider : NSObject |
Declared in | DixieSequentialChaosProvider.h DixieSequentialChaosProvider.m |
Overview
Provides a behaviour, where the method’s implementation behaves differently for a new call. The different behaviours depend on the defined different DixieChaosProviders of the class
Class Methods
sequence:
Creates a DixieSequentialChaosProvider
+ (instancetype)sequence:(id)sequenceOfChaosProviders
Parameters
- sequenceOfChaosProviders
Array of DixieBaseChaosProvider, the order of the array defines, how the method’s implementation will behave for a new call.
Return Value
a DixieSequentialChaosProvider
Discussion
Creates a DixieSequentialChaosProvider
Declared In
DixieSequentialChaosProvider.h
Instance Methods
chaosImplementationFor:environment:
The behaviour implementation
- (void)chaosImplementationFor:(id)victim environment:(id)environment
Parameters
- victim
The class or instance of the class, that’s method should be changed
- environment
A DixieCallEnvironment, that describes the arguments and return value
Discussion
The behaviour implementation
Declared In
DixieBaseChaosProvider.h