コード例 #1
0
        public async void CallDeleteEventModelWithAValidModel()
        {
            var result = await sut.DeleteConfirmed(It.IsAny <int>());

            fixture.repositoryWrapper.Verify(x => x.Sale.DeleteSale(It.IsAny <Sale>()), Times.Once);
            fixture.repositoryWrapper.Verify(y => y.SaveAsync(), Times.Once);
            Assert.IsAssignableFrom <RedirectToActionResult>(result);
        }