public void ShouldReturnListOfAccommodationLeads() { var id = Guid.NewGuid(); _queryRepository.Stub(x => x.ListAccommodationLeads()).Return(new List <AccommodationLead> { new AccommodationLead { AccommodationLeadId = id } }); var response = _controller.Get(); Assert.That(response.Count, Is.EqualTo(1)); Assert.That(response[0].AccommodationLeadId, Is.EqualTo(id)); }