public void GetById_GivenNegativeId_ShouldThrowMegativeIntException() { // arrange int id = -1; IDrivesService service = new DrivesService(null, null, null); // act // assert service.Invoking(s => s.GetById(id)) .Should().ThrowExactly <NegativeIntException>(); }
public void GetDetailsAdminModel_GivenNegativeDriveId_ShouldThrowNegativeIntException() { // arrange int driveId = -1; IDrivesService service = new DrivesService(null, null, null); // act // assert service.Invoking(s => s.GetDetailsAdminModel(driveId)) .Should().ThrowExactly <NegativeIntException>(); }
public void ReserveSeat_GivenNegativeUserId_ShouldThrowNegativeIntException() { // arrange int driveId = 1; int userId = -1; IDrivesService service = new DrivesService(null, null, null); // act // assert service.Invoking(s => s.ReserveSeat(driveId, userId)) .Should().ThrowExactly <NegativeIntException>(); }