예제 #1
0
        public ProductionBatchEntityObjectMother(RioAccessSQLEntities oldContext, RioValleyChiliDataContext newContext, Action <CallbackParameters> loggingCallback)
            : base(oldContext, loggingCallback)
        {
            if (newContext == null)
            {
                throw new ArgumentNullException("newContext");
            }

            _newContextHelper                  = new NewContextHelper(newContext);
            _serializedData                    = new SerializedData(oldContext);
            _productionResultHelper            = new ProductionResultHelper(_newContextHelper, _serializedData);
            _pickedInventoryItemLocationHelper = new PickedInventoryItemLocationHelper(_newContextHelper);
            _notebookFactory                   = NotebookFactory.Create(newContext);
        }
예제 #2
0
        public void LoadWpsJobStatus()
        {
            WpsProvider provider = CreateProvider("planetek", "planetek", "http://urban-tep.planetek.it/wps/WebProcessingService", true);

            provider.Store();
            WpsProcessOffering process = CreateProcess(provider, "it.planetek.wps.extension.Processor", "Title of the processor");

            process.Store();
            WpsJob job = new WpsJob(context);

            job.WpsId          = process.Identifier;
            job.StatusLocation = "http://urban-tep.planetek.it/wps/RetrieveResultServlet?id=72ed982a-8522-4c02-bb71-77f4c22a7808";

            var jobresponse  = job.GetStatusLocationContent();
            var execResponse = jobresponse as ExecuteResponse;

            job.UpdateStatusFromExecuteResponse(execResponse);

            //get job recast response
            execResponse = ProductionResultHelper.GetWpsjobRecastResponse(context, job, execResponse);
            Assert.True(true);
        }