private void ConvergentAdd(CRDT.Application.Convergent.Set.G_SetService <TestType> sourceReplica, TestType value, List <CRDT.Application.Convergent.Set.G_SetService <TestType> > downstreamReplicas)
        {
            sourceReplica.LocalAdd(value);

            var adds = sourceReplica.State;

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

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

                dictionary.Add(node, service);
            }

            return(dictionary);
        }