示例#1
0
        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));
        }
示例#2
0
 /// <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);
 }