public void CountNumImpacts_ReturnsCountOfMeteors(string showRemoved) { sentryRemovedService = new SentryRemovedService(showRemoved); string countGivenInAPI = sentryRemovedService.dto.SentryRemoved.count; Assert.That(sentryRemovedService.dto.SentryRemoved.data.Count.ToString(), Is.EqualTo(countGivenInAPI)); }
public void FileSignatureVersion_ReturnsCorrectVersion() { sentryRemovedService = new SentryRemovedService("true"); Assert.That(sentryRemovedService.dto.SentryRemoved.signature.version.ToString(), Is.EqualTo("1.1")); }
public void FileSignatureSource_ReturnsCorrectSource() { sentryRemovedService = new SentryRemovedService("true"); Assert.That(sentryRemovedService.dto.SentryRemoved.signature.source.ToString(), Is.EqualTo("NASA/JPL Sentry Data API")); }
public void CallingAPI_ReturnsCorrectHeaderInfo(string headerKey, string expectedValue) { sentryRemovedService = new SentryRemovedService("true"); Assert.That(sentryRemovedService.sentryCallManager.GetContentTypeHeader()[headerKey], Is.EqualTo(expectedValue)); }