public void DeleteEntityTest() { var teamService = new Mock <ITeamService>(); teamService.Setup(mock => mock.DeleteEntity(It.IsAny <int>())); var teamController = new TeamController(teamService.Object); teamController.DeleteEntity(It.IsAny <int>()); teamService.Verify(mock => mock.DeleteEntity(It.IsAny <int>()), Times.Once); }