public void GetRoomTest() { var cartRepo = new CartRepo(bookcontextmock.Object); CartViewModel temp = new CartViewModel() { Name = "Harry Potter and the Order of Phoenix", Price = 531, Description = "5th book of Harry Potter series" }; CartModel temp1 = new CartModel() { Name = temp.Name, Price = temp.Price, Description = temp.Description }; var roomAdded = cartRepo.AddRoom(temp); books.Add(temp1); Assert.AreNotEqual(4, books.Count()); Assert.AreEqual(5, books.Count()); }