Exemple #1
0
        public void CreateNullTest()
        {
            ArtistManager artistMng = new ArtistManager();
            Artist        artist    = null;

            Response actual   = artistMng.Create(artist);
            bool     expected = false;

            Console.WriteLine(actual.Message);
            Assert.AreEqual(expected, actual.Status);
        }
Exemple #2
0
        public void CreateTest()
        {
            ArtistManager artistMng = new ArtistManager();
            Artist        artist    = new Artist()
            {
                name = "Artista de prueba"
            };

            Response actual   = artistMng.Create(artist);
            bool     expected = true;

            Console.WriteLine(actual.Message);

            Assert.AreEqual(expected, actual.Status);
        }