Esempio n. 1
0
        public void TestInitializer()
        {
            _communication = new InMemoryCommunication();
            var nodes = new[]
            {
                "localhost:13000",
                "localhost:13001",
                "localhost:13002"
            };

            _nodes = new[]
            {
                new RaftNode(_communication.CreateCommunication(), nodes, "localhost:13000"),
                new RaftNode(_communication.CreateCommunication(), nodes, "localhost:13001"),
                new RaftNode(_communication.CreateCommunication(), nodes, "localhost:13002")
            };
            _communication.Nodes = _nodes;
        }
 public FakeRaftCommunication(InMemoryCommunication communication)
 {
     _communication = communication;
 }