public StorageTests() { MediaFolder.Init(new RepositoryInMemory <MediaFolder>("Id,CreateUser,CreateDate,UpdateUser,UpdateDate,Name,FullName,Extension,SortIndex,ParentId"), false); MediaFile.Init(new RepositoryInMemory <MediaFile>("Id,CreateUser,CreateDate,UpdateUser,UpdateDate,Name,FullName,Extensions,SortIndex,ParentId"), false); // 1. Create the folder. MediaFolder.Create(new MediaFolder() { Name = "photos", Description = "for images", DirectoryName = string.Empty, SortIndex = 1, IsPublic = true, Length = 0 }); MediaFolder.Create(new MediaFolder() { Name = "videos", Description = "for videos", DirectoryName = string.Empty, SortIndex = 2, IsPublic = true, Length = 0 }); MediaFolder.Create(new MediaFolder() { Name = "audios", Description = "for audios", DirectoryName = string.Empty, SortIndex = 3, IsPublic = true, Length = 0 }); MediaFolder.Create(new MediaFolder() { Name = "docs", Description = "for docs", DirectoryName = string.Empty, SortIndex = 4, IsPublic = true, Length = 0 }); }