public async Task DeletePostAction_DeleteModelFromService() { // Arrange // Act var result = await validController.DeleteConfirmed(entity.Id); // Assert mock.Verify(a => a.DeleteAsync(entity.Id)); }
public void DeleteConfirmed_DeletesState() { controller.DeleteConfirmed(state.Id); service.Received().Delete(state.Id); }