public async Task IsInUseAsync_UnknownJourney_ShouldReturnFalse() { using (var context = new PreservationContext(_dbContextOptions, _plantProvider, _eventDispatcher, _currentUserProvider)) { var dut = new JourneyValidator(context); var result = await dut.IsInUseAsync(1267, default); Assert.IsFalse(result); } }
public async Task IsInUseAsync_HaveSteps_ShouldReturnTrue() { using (var context = new PreservationContext(_dbContextOptions, _plantProvider, _eventDispatcher, _currentUserProvider)) { var dut = new JourneyValidator(context); var result = await dut.IsInUseAsync(_journey1WithStepId, default); Assert.IsTrue(result); } }