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)); }
/// <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); }