示例#1
0
        public PicturesModelTests()
        {
            this.picturesModel = PicturesModel.GetInstance();
            TestUtil.InitDatabase();

            // Create a test album
            AlbumsModel albumsModel = AlbumsModel.GetInstance();
            albumsModel.Add(TestAlbumName, TestAlbumName, TestUtil.TestUserId);
            dynamic album = albumsModel.GetByFolderName(TestAlbumName);
            this.testAlbumId = (int)album.ID;
        }
示例#2
0
 public PicturesController()
 {
     this.picturesModel = PicturesModel.GetInstance();
     this.albumsModel = AlbumsModel.GetInstance();
     this.imageStorage = ImageStorage.GetInstance();
 }