public void Setup()
 {
     MockJsonTreeDB.Clear();
     Command = new DeletePackageCommand();
     Command.SetFactory(new MockJsonTreeDBFactory());
     SetupDB(DBPath);
 }
 public void Setup()
 {
     MockJsonTreeDB.Clear();
     SetupDBStore();
     Command = new AddPackageCommand();
     Command.SetFactory(new MockJsonTreeDBFactory());
 }
        public void Setup()
        {
            MockJsonTreeDB.Clear();
            Command = new GetPackageCommand();
            Command.SetFactory(new MockJsonTreeDBFactory());

            dynamic store = new ExpandoObject();

            MockJsonTreeDB._Store[DBPath] = (JObject)JsonConvert.DeserializeObject(JsonConvert.SerializeObject(store));
        }