Exemple #1
0
        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);
        }
Exemple #2
0
 public IActionResult DeleteTape(int id)
 {
     _tapeService.DeleteTape(id);
     return(NoContent());
 }
Exemple #3
0
 public IActionResult DeleteTape(int id)
 {
     _tapeService.DeleteTape(id);
     return(StatusCode(204));
 }
Exemple #4
0
 public void DeleteValidTape_ReturnsNothing()
 {
     // act
     service.DeleteTape(1);
     _tapeRepository.Verify((m => m.GetTapeById(1)), Times.Once());
 }
Exemple #5
0
 public IActionResult DeleteTapeById(int tapeId)
 {
     _tapeService.DeleteTape(tapeId);
     return(NoContent());
 }
Exemple #6
0
 public void DeleteTape_ShouldCallDeleteTapeFromTapeRepository()
 {
     _tapeService.DeleteTape(_tapeMockListSize);
     _mockTapeRepository.Verify(mock => mock.DeleteTape(_tapeMockListSize), Times.Once());
 }