Example #1
0
        public async Task VerifyRegex()
        {
            var provider = new ReportMetaDataProvider("qQR1mBMT72ztxpkA");
            var result   = await provider.GetMetadataAsync();

            Assert.That(result.Reporter, Is.EqualTo("Soulfury"));
            Assert.That(result.Name, Is.EqualTo("Trillax Mythic"));
            Assert.That(result.Date, Is.EqualTo(new DateTime(2017, 1, 11, 21, 9, 32).AddMilliseconds(547)));
        }
Example #2
0
        private async Task ExtractReportMetaInfoAsync()
        {
            var provider = new ReportMetaDataProvider(Report.ReportId);
            var result   = await provider.GetMetadataAsync();

            ReportName = result.Name;
            ReportDate = result.Date.ToString("D");

            DisplayName        = ReportName;
            this.HyperlinkText = $"{result.Name} {result.Date} - {result.Reporter}";
        }