public void TestVirtualFolder() { MockMediaLocation vf = new MockMediaLocation("movies.vf"); vf.Contents = @" folder: \\10.0.0.4\videos\Movies image: \\10.0.0.4\videos\Movies\folder.png "; var config = Configuration.DefaultVideoLibraryConfig; config.RootLocations.Add(vf); var library = Library.Initialize(config); }
public void AddSibling(RowInfo info) { MockMediaLocation newLocation; if (info.IsFolder) { newLocation = new MockFolderMediaLocation(); } else { newLocation = new MockMediaLocation(); } if (location.Path.Length > 0) { newLocation.Path = location.Path + "\\" + info.Path; } else { newLocation.Path = info.Path; } newLocation.Parent = this.location; location.Children.Add(newLocation); }