예제 #1
0
        public void TestBasicFlow()
        {
            IEngine engine = InjectorStub.GetTestEngine();

            TestHarvester harvester = (TestHarvester)((Engine)engine).Harvester;

            harvester.ReplyMode = TestHarvester.ReplyModes.Success;

            Inference inference = engine.GetInference(customerID, 0, false, GetInferenceMode.DownloadIfOld);

            Log.Info("Inference read: {0}", inference);
        }         // TestBasicFlow
예제 #2
0
        public void TestTimeoutL()
        {
            IEngine engine = InjectorStub.GetTestEngine();

            TestHarvester harvester = (TestHarvester)((Engine)engine).Harvester;

            harvester.ReplyMode = TestHarvester.ReplyModes.TimeoutA;

            Inference inference = engine.GetInference(customerID, 0, false, GetInferenceMode.ForceDownload);

            Log.Info("Inference read: {0}", inference);
        }         // TestTimeoutL