Пример #1
0
        public static bool Validate(this MusicDb musicDb)
        {
            var list = new List <bool>()
            {
                musicDb.ValidateArtists(),
                musicDb.ValidateWorks(),
                musicDb.ValidateTracks(),
                musicDb.ValidateCompositions(),
                musicDb.ValidatePerformances()
            };

            return(list.All(x => x == true));
        }