public async void Should_Return_List_of_deals_for_the_current_user_id_if_deals_exist() { //Arrange var deals = FakeDeals(); _dealRepository.Setup(x => x.GetDealsById(It.IsAny <Guid>())).ReturnsAsync(deals); //Act var result = await sut.Index(Guid.NewGuid()); //Assert var viewResult = Assert.IsType <ViewResult>(result); IEnumerable <Deal> model = Assert.IsAssignableFrom <IEnumerable <Deal> >(viewResult.ViewData.Model); }