public static void AddDiscs(this FolderModel folder, params DiscModel[] discs) { foreach (var disc in discs) { folder.AddDisc(disc); } }
public async Task UpdateDisc_TreeTitleWasNotChanged_DoesNotUpdateDiscTreeTitleInStorageRepository() { // Arrange var disc = new DiscModel { Id = new ItemId("Disc Id"), Title = "Old Disc Title", TreeTitle = "2021 - Some Disc (CD 1)" }; disc.AddSong(new SongModel()); var folder = new FolderModel { Id = new ItemId("Folder Id"), Name = "Test Folder" }; folder.AddDisc(disc); var mocker = new AutoMocker(); var target = mocker.CreateInstance <DiscsService>();