internal void ConfirmCreate(string?correlatingMessageId, AttributeSet set, Node toOriginalSource) { var confirm = new ConfirmCreateAttributeSet(correlatingMessageId, _node, set); _outbound.Application(ApplicationSays.From(_node.Id, _node.Name, confirm.ToPayload()), toOriginalSource.Collected); _application.InformAttributeSetCreated(set.Name); }
public void TestConfirmCreateAttributeSet() { var inboundStreamInterest = TestWorld.ActorFor <IInboundStreamInterest>( () => new AttributesAgentActor(_localNode, Application, _outboundStream.Actor, Config, _interest)); var confirm = new ConfirmCreateAttributeSet("123", _localNode, _set); inboundStreamInterest.Actor.HandleInboundStreamMessage(AddressType.Op, RawMessageFor(_localNodeId, _localNode.Name, confirm)); Assert.Equal(1, _interest.Confirmed); Assert.Equal(_set.Name, _interest.AttributeSetName); Assert.Equal(confirm.Type, _interest.Type); }