Example #1
0
 private DateTimeOffset getReleaseDateFromEntry(ContentManifestDirectoryEntry entry)
 {
     if (entry.content == EMBEDDED_CONTENT)
     {
         return(DateTimeOffset.MinValue);
     }
     if (!string.IsNullOrEmpty(entry.releaseDate))
     {
         return(CommonDateTime.Deserialize(entry.releaseDate));
     }
     string[] array = entry.content.Split('_');
     if (array.Length == 2)
     {
         string dateString = array[1];
         return(CommonDateTime.CreateDate(dateString));
     }
     return(DateTimeOffset.MinValue);
 }
Example #2
0
        protected override IEnumerator runTest()
        {
            InitializeManifestDefinitionCommand initializeManifestDefinitionCommand = new InitializeManifestDefinitionCommand(new MockManifestService2(ExpectedResult.ClientVersion, ExpectedResult.Platform, CommonDateTime.Deserialize(ExpectedResult.ContentDate), ExpectedResult.Environment), onInitializeManifestCommandComplete);

            wait();
            initializeManifestDefinitionCommand.Execute();
            yield break;
        }