public void GetBusinessJustifications_ReturnPagedAnonymousObject() { //Arrange var anonymousQueryable = new List <object> { new { Id = new Guid("01fab7d5-c8e9-4934-9adf-0ae25bd94b00"), Value = "Business Justifications 1", Position = 0 } }.AsQueryable(); _dropdownRepository.GetBusinessJustifications() .Returns(anonymousQueryable); //Act var response = _dropdownService.GetBusinessJustifications(); //Assert Assert.IsNotNull(response); Assert.AreEqual(anonymousQueryable.Count(), response.Count()); }
public IQueryable <object> GetBusinessJustifications() { return(_dropdownRepository.GetBusinessJustifications()); }