Esempio n. 1
0
        public UpdateModel(Workspace workspace, WebDataCtxWrapper context, object entity, ResourceContainer resContainer,
            UpdateModel parent)
            : base(workspace)
        {
            _workspace = workspace;
            this.ResContainer = resContainer;
            this.CurrentResource = entity;
            CurrentResourceSet = resContainer.Name;

            _ctx = context;
            RunningUnderLinkModel = true;
        }
Esempio n. 2
0
 //Constructor
 public UpdateModel(Workspace workspace, UpdateModel parent)
     : base(workspace)
 {
     _workspace = workspace;
 }
Esempio n. 3
0
 public void ModifyEntity()
 {
     string entitySetName = ""; object entity = null;
     ResourceContainer resContainer = null;
     while (resContainer == null)
     {
         entity = GetResource(out entitySetName, out resContainer);
     }
     UpdateModel updModel = new UpdateModel(workSpace, Context, entity, resContainer, null);
     updModel.RunningUnderLinkModel = true;
     ModelEngine engine = new ModelEngine();
     engine.Models.Add(updModel);
     engine.Options.Timeout = Timeout;
     engine.Run();
 }
Esempio n. 4
0
        private void ModifyEntity(bool IsSource)
        {
            AstoriaTestLog.WriteLine("--Running Update Model");
            ModelEngine engine = new ModelEngine();
            engine.Options.Timeout = UpdateModelDuration;

            UpdateModel targetUpdate = null;
            if (IsSource)
            {
                targetUpdate = new UpdateModel(workSpace, Context, Source, SourceContainer, null);
            }
            else
            {
                targetUpdate = new UpdateModel(workSpace, Context, Target, TargetContainer, null);
            }
            engine.Models.Add(targetUpdate);
            engine.Run();
        }
Esempio n. 5
0
 public ClientModelBase(Workspace workspace, UpdateModel parent)
     : base(parent)
 {
     _workspace = workspace;
 }