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; }
public PicturesController() { this.picturesModel = PicturesModel.GetInstance(); this.albumsModel = AlbumsModel.GetInstance(); this.imageStorage = ImageStorage.GetInstance(); }