private Dictionary <Node, LWW_RegisterWithVCService <TestType> > CreateCommutativeReplicas(List <Node> nodes) { var dictionary = new Dictionary <Node, LWW_RegisterWithVCService <TestType> >(); foreach (var node in nodes) { var repository = new LWW_RegisterWithVCRepository(); var service = new LWW_RegisterWithVCService <TestType>(repository); dictionary.Add(node, service); } return(dictionary); }
public LWW_RegisterWithVCServiceTests() { _repository = new LWW_RegisterWithVCRepository(); _service = new LWW_RegisterWithVCService <TestType>(_repository); _builder = new TestTypeBuilder(new Random()); }