Exemple #1
0
        public void A_Create()
        {
            Project.Data.Repository repo     = new Project.Data.Repository(db);
            Project.Domain.Song     songTest = new Project.Domain.Song()
            {
                Title       = "Encore",
                Artist      = "Linkin Park",
                Genre       = "Rock",
                Size        = "3.45",
                Length      = "3.7",
                ReleaseDate = "1993",
                FilePath    = "audio/file"
            };

            Assert.IsNotNull(songTest.Size);

            repo.CreateSong(songTest);
            Assert.Pass();
        }