public async Task DeletePostAction_DeleteModelFromService()
        {
            // Arrange

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

            // Assert
            mock.Verify(a => a.DeleteAsync(entity.Id));
        }
Пример #2
0
        public void DeleteConfirmed_DeletesState()
        {
            controller.DeleteConfirmed(state.Id);

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