public void DeleteTape() { // arrange int tapeId = 1; _tapeRepositoryMock.Setup(method => method.DeleteTape(tapeId)); // act _tapeService.DeleteTape(tapeId); // assert _tapeRepositoryMock.Verify(x => x.DeleteTape(tapeId), Times.Once); }
public IActionResult DeleteTape(int id) { _tapeService.DeleteTape(id); return(NoContent()); }
public IActionResult DeleteTape(int id) { _tapeService.DeleteTape(id); return(StatusCode(204)); }
public void DeleteValidTape_ReturnsNothing() { // act service.DeleteTape(1); _tapeRepository.Verify((m => m.GetTapeById(1)), Times.Once()); }
public IActionResult DeleteTapeById(int tapeId) { _tapeService.DeleteTape(tapeId); return(NoContent()); }
public void DeleteTape_ShouldCallDeleteTapeFromTapeRepository() { _tapeService.DeleteTape(_tapeMockListSize); _mockTapeRepository.Verify(mock => mock.DeleteTape(_tapeMockListSize), Times.Once()); }