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

            var(adds, removes) = sourceReplica.State;

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

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

                dictionary.Add(node, service);
            }

            return(dictionary);
        }