/// <summary>
 /// The get.
 /// </summary>
 /// <param name="request">
 /// The request.
 /// </param>
 /// <returns>
 /// The <see cref="object"/>.
 /// </returns>
 public object Get(EntityByUpdatedDates request)
 {
     AndSpecification<File> criteria =
         new FindFileByEntity(request.Cid, request.Cuid).And(
             new FindFileByLastUpdateRange(request.StartDate, request.EndDate));
     return this.CreateResponseForFilesByCriteria(request, criteria);
 }
        public void FindByEntityTheory(string idClient, string idEntity, bool match)
        {
            // arrange
            var file = new File { Client = new Client { Cid = idClient, Cuid = idEntity } };
            var sut = new FindFileByEntity(IdClientToFound, IdEntityToFound);

            // 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(EntityByDatesFileType request)
 {
     AndSpecification<File> criteria =
         new FindFileByEntity(request.Cid, request.Cuid).And(
             new FindFileByReceptionDateRange(request.StartDate, request.EndDate))
                                                        .And(new FindFileByType(request.FileType));
     return this.CreateResponseForFilesByCriteria(request, criteria);
 }
 /// <summary>
 /// The get.
 /// </summary>
 /// <param name="request">
 /// The request.
 /// </param>
 /// <returns>
 /// The <see cref="object"/>.
 /// </returns>
 public object Get(EntityByTags request)
 {
     AndSpecification<File> criteria =
         new FindFileByEntity(request.Cid, request.Cuid).And(new FindFileByTags(request.Tags));
     return this.CreateResponseForFilesByCriteria(request, criteria);
 }
 /// <summary>
 /// The get.
 /// </summary>
 /// <param name="request">
 /// The request.
 /// </param>
 /// <returns>
 /// The <see cref="object"/>.
 /// </returns>
 public object Get(Entity request)
 {
     var criteria = new FindFileByEntity(request.Cid, request.Cuid);
     return this.CreateResponseForFilesByCriteria(request, criteria);
 }