AssertStepOperationsCreatedForDefinitions() public method

public AssertStepOperationsCreatedForDefinitions ( IProgressStepDefinition definitions, IProgressStepOperation stepOperations ) : void
definitions IProgressStepDefinition
stepOperations IProgressStepOperation
return void
Example #1
0
        public void SequentialProgressController_IProgressController_Initialize()
        {
            // Arrange
            ConfigurableProgressStepFactory testFactory = new ConfigurableProgressStepFactory();

            IProgressStepDefinition[] definitions = new IProgressStepDefinition[]
            {
                new StubProgressStepDefinition(),
                new StubProgressStepDefinition(),
                new StubProgressStepDefinition()
            };

            // Act
            this.testSubject.Initialize(testFactory, definitions);

            // Assert
            IProgressStepOperation[] stepOperations = this.testSubject.Steps.OfType <IProgressStepOperation>().ToArray();
            testFactory.AssertStepOperationsCreatedForDefinitions(definitions, stepOperations);
        }
        public void SequentialProgressController_IProgressController_Initialize()
        {
            // Setup
            ConfigurableProgressStepFactory testFactory = new ConfigurableProgressStepFactory();
            IProgressStepDefinition[] definitions = new IProgressStepDefinition[]
            {
                    new StubProgressStepDefinition(),
                    new StubProgressStepDefinition(),
                    new StubProgressStepDefinition()
            };

            // Execute
            this.testSubject.Initialize(testFactory, definitions);

            // Verify
            IProgressStepOperation[] stepOperations = this.testSubject.Steps.OfType<IProgressStepOperation>().ToArray();
            testFactory.AssertStepOperationsCreatedForDefinitions(definitions, stepOperations);
        }