public void ShouldNotTransformEntityBody() { IRepresentation archiveFeed = new ArchiveFeed(StreamBackedRepresentation.CreateArchiveFeed()); Output output = Output.For(archiveFeed); Assert.AreEqual(output.EntityBody, StreamBackedRepresentation.CreateArchiveFeed().GetContents()); }
public void ShouldAddLongCachingPolicyCacheControlHeader() { IRepresentation archiveFeed = new ArchiveFeed(StreamBackedRepresentation.CreateArchiveFeed()); Output output = Output.For(archiveFeed); Assert.AreEqual("max-age=10000", output.CacheControl); }