示例#1
0
        public void FindByClientTheory(string idFile, bool match)
        {
            // arrange
            var file = new File { FileId = new Guid(idFile) };
            var sut = new FindFileById(new Guid(IdToFound));

            // 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(FileById request)
 {
     var criteria = new FindFileById(request.IdFile);
     return this.CreateResponseForSingleFileByCriteria(request, criteria);
 }