public SaveItemCommandTest()
    {
      this.templateId = ID.NewID;
      this.itemId = ID.NewID;
      this.fieldId = ID.NewID;

      this.dataStorage.GetFakeTemplate(null).ReturnsForAnyArgs(new DbTemplate("Sample", this.templateId));

      this.command = new OpenSaveItemCommand { Engine = new DataEngine(this.database) };
      this.command.Initialize(this.dataStorage);
    }
예제 #2
0
        public SaveItemCommandTest()
        {
            this.templateId = ID.NewID;
            this.itemId     = ID.NewID;
            this.fieldId    = ID.NewID;

            this.dataStorage.GetFakeTemplate(null).ReturnsForAnyArgs(new DbTemplate("Sample", this.templateId));

            this.command = new OpenSaveItemCommand {
                Engine = new DataEngine(this.database)
            };
            this.command.Initialize(this.dataStorage);
        }
 public SaveItemCommandTest()
 {
   this.command = new OpenSaveItemCommand { Engine = new DataEngine(this.database) };
   this.command.Initialize(this.innerCommand);
 }