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