internal void AddAttribute(ReceivedAttributeMessage request)
    {
        var attributeSet = _repository.AttributeSetOf(request.AttributeSetName !);

        if (attributeSet.IsNone)
        {
            attributeSet = AttributeSet.Named(request.AttributeSetName);
            _repository.Add(attributeSet);
        }
        var tracked = attributeSet.AddIfAbsent(request.Attribute());

        _confirmingDistributor.Confirm(request.TrackingId, attributeSet, tracked, request.Type, _configuration.NodeMatching(request.SourceNodeId));
    }
예제 #2
0
        public void TestConfirmAddAttribute()
        {
            _confirmingDistributor.Confirm("123", _set, _tracked, ApplicationMessageType.AddAttribute, _localNode);

            SingleChannelMessageAssertions();
        }