public void NotificationRepository_GetByUserId_ReturnsIEnumerable() { //arrange INotificationRepo nr = GetInMemoryNotificationRepository(); Notification notification2 = new Notification { Type = "like", ReceiverId = 1, SenderId = 3, Status = true, ReviewId = 2 }; //act nr.Add(notification); nr.Add(notification2); //assert Assert.IsAssignableFrom <IEnumerable <Notification> >(nr.GetByReceiverId(1)); }