public void SetUp() { repository = new FakeSongListRepository(); userWithSongList = new User("User with songlist", "123", "*****@*****.**", PasswordHashAlgorithms.Default); permissionContext = new FakePermissionContext(new UserWithPermissionsContract(userWithSongList, ContentLanguagePreference.Default)); imagePersister = new InMemoryImagePersister(); queries = new SongListQueries(repository, permissionContext, new FakeEntryLinkFactory(), imagePersister, imagePersister, new FakeUserIconFactory()); song1 = new Song(TranslatedString.Create("Project Diva desu.")) { Id = 1 }; song2 = new Song(TranslatedString.Create("World is Mine")) { Id = 2 }; repository.Add(userWithSongList); repository.Add(song1, song2); songListContract = new SongListForEditContract { Name = "Mikunopolis Setlist", Description = "MIKUNOPOLIS in LOS ANGELES - Hatsune Miku US debut concert held at Nokia Theatre for Anime Expo 2011 on 2nd July 2011.", SongLinks = SongInListEditContracts(song1, song2) }; }
public void SetUp() { repository = new FakeSongListRepository(); userWithSongList = new User("User with songlist", "123", "*****@*****.**", 123); permissionContext = new FakePermissionContext(new UserWithPermissionsContract(userWithSongList, ContentLanguagePreference.Default)); imagePersister = new InMemoryImagePersister(); queries = new SongListQueries(repository, permissionContext, new FakeEntryLinkFactory(), imagePersister); var song1 = new Song(TranslatedString.Create("Project Diva desu.")) { Id = 1}; var song2 = new Song(TranslatedString.Create("World is Mine")) { Id = 2}; repository.Add(userWithSongList); repository.Add(song1, song2); songListContract = new SongListForEditContract { Name = "Mikunopolis Setlist", Description = "MIKUNOPOLIS in LOS ANGELES - Hatsune Miku US debut concert held at Nokia Theatre for Anime Expo 2011 on 2nd July 2011.", SongLinks = SongInListEditContracts(song1, song2) }; }