public void GetAll_ReturnsListOfVinyls_List()
        {
            Vinyl        newVinyl  = new Vinyl("title");
            Vinyl        newVinyl2 = new Vinyl("title");
            List <Vinyl> newList   = new List <Vinyl> {
                newVinyl, newVinyl2
            };
            List <Vinyl> result = Vinyl.GetAll();

            CollectionAssert.AreEqual(newList, result);
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            List <Vinyl> newVinylList = Vinyl.GetAll();

            return(View(newVinylList));
        }