예제 #1
0
 public void PopulateUpdated(
     IUpdatedDocument document,
     bool lastUpdatedFromCatalog)
 {
     document.SetLastUpdatedDocumentOnNextRead();
     document.LastDocumentType       = document.GetType().FullName;
     document.LastUpdatedFromCatalog = lastUpdatedFromCatalog;
 }
예제 #2
0
파일: Data.cs 프로젝트: nikhgup/NuGet.Jobs
        public static void SetDocumentLastUpdated(IUpdatedDocument document, ITestOutputHelper output)
        {
            var currentTimestamp = document.LastUpdatedDocument;

            output.WriteLine(
                $"The commited document has a generated {nameof(document.LastUpdatedDocument)} value of " +
                $"{currentTimestamp:O}. Replacing this value with {DocumentLastUpdated:O}.");
            document.LastUpdatedDocument = DocumentLastUpdated;
        }
 public void SetDocumentLastUpdated(IUpdatedDocument document)
 {
     Data.SetDocumentLastUpdated(document, _output);
 }