public async Task Exists_UnknownId_ShouldReturnFalse() { using (var context = new PreservationContext(_dbContextOptions, _plantProvider, _eventDispatcher, _currentUserProvider)) { var dut = new StepValidator(context); var result = await dut.ExistsAsync(126234, default); Assert.IsFalse(result); } }
public async Task Exists_KnownId_ShouldReturnTrue() { using (var context = new PreservationContext(_dbContextOptions, _plantProvider, _eventDispatcher, _currentUserProvider)) { var dut = new StepValidator(context); var result = await dut.ExistsAsync(_step1InJourney1ForSupplier.Id, default); Assert.IsTrue(result); } }