private async Task <int> CreateStandardTagAsync( int stepId, bool startPreservation) { var newReqDefId = await CreateRequirementDefinitionAsync(UserType.LibraryAdmin, TestFactory.PlantWithAccess); var tagNo = Guid.NewGuid().ToString(); MockMainApiDataForTag(tagNo); var newTagIds = await TagsControllerTestsHelper.CreateStandardTagAsync( UserType.Planner, TestFactory.PlantWithAccess, TestFactory.ProjectWithAccess, new [] { tagNo }, new List <TagRequirementDto> { new TagRequirementDto { IntervalWeeks = 4, RequirementDefinitionId = newReqDefId } }, stepId, null, null); if (startPreservation) { await TagsControllerTestsHelper.StartPreservationAsync(UserType.Planner, TestFactory.PlantWithAccess, newTagIds); } return(newTagIds.Single()); }