private void ConvergentRemove(CRDT.Application.Convergent.Set.LWW_OptimizedSetWithVCService <TestType> sourceReplica, TestType value, VectorClock vectorClock, List <CRDT.Application.Convergent.Set.LWW_OptimizedSetWithVCService <TestType> > downstreamReplicas)
        {
            sourceReplica.LocalRemove(value, vectorClock);

            foreach (var downstreamReplica in downstreamReplicas)
            {
                downstreamReplica.Merge(sourceReplica.State);
            }
        }
        private Dictionary <Node, CRDT.Application.Convergent.Set.LWW_OptimizedSetWithVCService <TestType> > CreateConvergentReplicas(List <Node> nodes)
        {
            var dictionary = new Dictionary <Node, CRDT.Application.Convergent.Set.LWW_OptimizedSetWithVCService <TestType> >();

            foreach (var node in nodes)
            {
                var repository = new LWW_OptimizedSetWithVCRepository();
                var service    = new CRDT.Application.Convergent.Set.LWW_OptimizedSetWithVCService <TestType>(repository);

                dictionary.Add(node, service);
            }

            return(dictionary);
        }