public async Task DeletePostAction_DeleteModelFromService()
        {
            // Arrange

            // Act
            var result = await validController.DeleteConfirmed(entity.Id);

            // Assert
            mock.Verify(a => a.DeleteAsync(entity.Id));
        }
Beispiel #2
0
        public void DeleteConfirmed_DeletesCity()
        {
            controller.DeleteConfirmed(city.Id);

            service.Received().Delete(city.Id);
        }