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

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