public void RemoveServiceByID_CallsRemove() { //Arrange var expectedService = new Resume() { ResumeId = 1, ResumeTitile = "Title" }; _resumeRepository.Setup(x => x.Remove(expectedService)); //Act _resumeService.RemoveResumeByID(1); //Assert _resumeRepository.Verify(x => x.Remove(It.IsAny <Resume>()), Times.Once); }
// DELETE: api/Resume/5 public void Delete(int id) { _resumeService.RemoveResumeByID(id); }