public void FindByClientTheory(string idFile, bool match) { // arrange var file = new File { Tags = new List<string> { TagToFound } }; var sut = new FindFileByTags(new List<string> { idFile }); // assert Assert.Equal(match, sut.IsSatisfiedBy().Compile().Invoke(file)); }
/// <summary> /// The get. /// </summary> /// <param name="request"> /// The request. /// </param> /// <returns> /// The <see cref="object"/>. /// </returns> public object Get(FileByTags request) { var criteria = new FindFileByTags(request.Tags); return this.CreateResponseForFilesByCriteria(request, criteria); }