public async Task <GetCustomTagResponse> Handle(GetCustomTagRequest request, CancellationToken cancellationToken) { EnsureArg.IsNotNull(request, nameof(request)); TagPathValidator.Validate(request.CustomTagPath); return(await _getCustomTagsService.GetCustomTagAsync(request.CustomTagPath, cancellationToken)); }
public void GivenValidTagPath_WhenValidating_ThenShouldSucceed(string tagPath) { TagPathValidator.Validate(tagPath); }
public void GivenInvalidTagPath_WhenValidating_ThenValidationExceptionShouldBeThrown(string tagPath) { Assert.Throws <TagPathValidationException>(() => TagPathValidator.Validate(tagPath)); }