Esempio n. 1
0
 public ClientNode(IClusterClient _clusterClient, ClientNodeProcessingModule _core,
                   IMessageArrayCreator _creator) : base(_clusterClient)
 {
     core         = _core;
     creator      = _creator;
     solvingWatch = new Stopwatch();
 }
Esempio n. 2
0
        public void GetRequestRelationsTest()
        {
            var core    = new ClientNodeProcessingModule(null, "abc");
            var request = core.GetRequest();

            Assert.AreEqual(core.Type, request.ProblemType);
            Assert.AreEqual(core.Type, "abc");
            Assert.IsTrue(request.SolvingTimeoutSpecified);
            Assert.IsTrue(request.SolvingTimeout > 0);
            //Assert.IsNotNull(request.Data);
            Assert.IsFalse(request.IdSpecified);
        }