public void AddBeforeShouldAddStepBeforeStepWithGivenKey() { var step = new SampleApplicationPipelineStep(); _sut .Add(_step1) .Add(_step2) .AddBefore(_step2.Key, step); _sut.Configure(_pipeline); _pipeline.Steps.Should().ContainInOrder(new[] { _step1, step, _step2 }); }
public void InheritedStepsFromHttpPipelineStepBaseGenericShouldUseTypeFullNameAsKey() { var step = new SampleApplicationPipelineStep(); step.Key.Should().Be(typeof(SampleApplicationPipelineStep).FullName); }