示例#1
0
        public async void ReturnValidModelForCorrectId(int id)
        {
            var result = await sut.Details(id);

            var vr = Assert.IsType <ViewResult>(result);

            fixture.repositoryWrapper.Verify(y => y.Sale.GetSaleByIdAsync(id), Times.Once);
            Assert.Equal("Details", vr.ViewName);
            Assert.IsAssignableFrom <SaleManagementDTO>(vr.Model);
        }