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)); }
public void TestConfirmAddAttribute() { _confirmingDistributor.Confirm("123", _set, _tracked, ApplicationMessageType.AddAttribute, _localNode); SingleChannelMessageAssertions(); }