public async Task ExistsStepAsync_UnknownJourneyId_ShouldReturnFalse() { using (var context = new PreservationContext(_dbContextOptions, _plantProvider, _eventDispatcher, _currentUserProvider)) { var dut = new JourneyValidator(context); var result = await dut.ExistsStepAsync(126234, _step1InJourney1.Id, default); Assert.IsFalse(result); } }
public async Task ExistsStepAsync_KnownIds_ShouldReturnTrue() { using (var context = new PreservationContext(_dbContextOptions, _plantProvider, _eventDispatcher, _currentUserProvider)) { var dut = new JourneyValidator(context); var result = await dut.ExistsStepAsync(_journey1WithStepId, _step1InJourney1.Id, default); Assert.IsTrue(result); } }