public async Task IsAnyStepInJourneyInUseAsync_ShouldReturnFalse_BeforeTagAddedToAStep()
        {
            using (var context = new PreservationContext(_dbContextOptions, _plantProvider, _eventDispatcher, _currentUserProvider))
            {
                var dut    = new JourneyValidator(context);
                var result = await dut.IsAnyStepInJourneyInUseAsync(_journey1WithStepId, default);

                Assert.IsFalse(result);
            }
        }
        public async Task IsAnyStepInJourneyInUseAsync_ShouldReturnTrue_AfterTagAddedToAStep()
        {
            using (var context = new PreservationContext(_dbContextOptions, _plantProvider, _eventDispatcher, _currentUserProvider))
            {
                var project = AddProject(context, "P", "Project description");
                var rd      = AddRequirementTypeWith1DefWithoutField(context, "Rot", "D", RequirementTypeIcon.Other).RequirementDefinitions.First();
                AddTag(context, project, TagType.Standard, "TagNo", "Tag description", _step1InJourney1,
                       new List <TagRequirement> {
                    new TagRequirement(TestPlant, 2, rd)
                });
            }

            using (var context = new PreservationContext(_dbContextOptions, _plantProvider, _eventDispatcher, _currentUserProvider))
            {
                var dut    = new JourneyValidator(context);
                var result = await dut.IsAnyStepInJourneyInUseAsync(_journey1WithStepId, default);

                Assert.IsTrue(result);
            }
        }