public AsyncTreeViewModel(IISOViewModelStore store)
            : base(store)
        {
            _addQueue    = new Queue <IISOViewModel>();
            _removeQueue = new Queue <IISOViewModel>();

            _queuesEmpty = new ManualResetEvent(true);
        }
        public TreeViewModelTest()
        {
            //Mock ISO
            rootISOMock = new Mock<ISerializableObject>();
            rootISOMock.Setup(o=>o.Rowguid).Returns(Guid.NewGuid());
            _rootISO = rootISOMock.Object;

            //VM returned for the above ISO
            rootVMMock = new Mock<IISOViewModel>();
            rootVMMock.Setup(o => o.Parent).Returns(()=>null);
            rootVMMock.Setup(o => o.Name).Returns(_rootISOName).Verifiable();
            rootVMMock.Setup(o => o.Icon).Returns(ISOIcon.Agent).Verifiable();
            rootVMMock.Setup(o => o.Rowguid).Returns(_rootISO.Rowguid);

            storeMock = new Mock<IISOViewModelStore>();
            storeMock.Setup(s => s.addOrRetrieveVMForISO(_rootISO)).Returns(rootVMMock.Object).Verifiable();
            _store = storeMock.Object;

             _tree = new TreeViewModel(_store);
        }
 public TreeViewModel(IISOViewModelStore store)
 {
     _roots = new List<NodeViewModel>();
     _store = store;
     _generators = new HashSet<NodeViewModel>();
 }
 public TreeViewModel(IISOViewModelStore store)
 {
     _roots      = new List <NodeViewModel>();
     _store      = store;
     _generators = new HashSet <NodeViewModel>();
 }