private Dictionary <Node, CRDT.Application.Commutative.Counter.PN_CounterService> CreateCommutativeReplicas(List <Node> nodes) { var dictionary = new Dictionary <Node, CRDT.Application.Commutative.Counter.PN_CounterService>(); foreach (var node in nodes) { var repository = new PN_CounterRepository(); var service = new CRDT.Application.Commutative.Counter.PN_CounterService(repository); dictionary.Add(node, service); } return(dictionary); }
public PN_CounterServiceTests() { _repository = new PN_CounterRepository(); _service = new PN_CounterService(_repository); }