public void CreateStageDocument() { var stage = new Stage(StageCategory.Decoder.Id, PolicyFile.BTSReceivePolicy.Value); var visitor = new VisitorSpy(); var stageDocument = visitor.CreateStageDocument(stage); stageDocument.CategoryId.Should().Be(StageCategory.Decoder.Id); }
public void CreateReceivePartyResolverStageDocument() { var stage = new Stage(StageCategory.PartyResolver.Id, PolicyFile.BTSReceivePolicy.Value); var visitor = new VisitorSpy(); var stageDocument = visitor.CreateStageDocument(stage); stageDocument.CategoryId.Should().Be(StageCategory.PartyResolver.Id); stageDocument.PolicyFileStage.Should().BeEquivalentTo(PolicyFile.BTSReceivePolicy.Value.Stages[3]); }
public void CreateSendPreAssemblerStageDocument() { var stage = new Stage(StageCategory.Any.Id, PolicyFile.BTSTransmitPolicy.Value); var visitor = new VisitorSpy(); var stageDocument = visitor.CreateStageDocument(stage); stageDocument.CategoryId.Should().Be(StageCategory.Any.Id); stageDocument.PolicyFileStage.Should().BeEquivalentTo(PolicyFile.BTSTransmitPolicy.Value.Stages[0]); }