public void ToStringWorksProperly(string type, string startDate, string endDate, string expected) { // arrange var sut = new FileByUpdatedDatesType { FileType = type, StartDate = DateTime.Parse(startDate), EndDate = DateTime.Parse(endDate) }; // act var result = sut.ToString(); // assert Assert.Equal(expected, result); }
/// <summary> /// The get. /// </summary> /// <param name="request"> /// The request. /// </param> /// <returns> /// The <see cref="object"/>. /// </returns> public object Get(FileByUpdatedDatesType request) { AndSpecification<File> criteria = new FindFileByLastUpdateRange(request.StartDate, request.EndDate).And( new FindFileByType(request.FileType)); return this.CreateResponseForFilesByCriteria(request, criteria); }