public void TestScenario3() { var thumbor = new Thumbor("http://localhost/", "my-security-key"); var thumborUrl = thumbor.BuildEncryptedUrl("meta/my.server.com/some/path/to/image.jpg"); thumborUrl.Should().Be("/Ps3ORJDqxlSQ8y00T29GdNAh2CY=/meta/my.server.com/some/path/to/image.jpg"); }
public void TestScenario2() { var thumbor = new Thumbor("http://localhost/", "my-security-key"); var thumborUrl = thumbor.BuildEncryptedUrl("300x200/my.server.com/some/path/to/image.jpg"); thumborUrl.Should().Be("/8ammJH8D-7tXy6kU3lTvoXlhu4o=/300x200/my.server.com/some/path/to/image.jpg"); }
public void TestScenario5() { var thumbor = new Thumbor("http://localhost/", "my-security-key"); var thumborUrl = thumbor.BuildEncryptedUrl("fit-in/my.server.com/some/path/to/image.jpg"); thumborUrl.Should().Be("/uvLnA6TJlF-Cc-L8z9pEtfasO3s=/fit-in/my.server.com/some/path/to/image.jpg"); }
public void TestScenario6() { var thumbor = new Thumbor("http://localhost/", "my-security-key"); var thumborUrl = thumbor.BuildEncryptedUrl("filters:brightness(10):contrast(20)/my.server.com/some/path/to/image.jpg"); thumborUrl.Should().Be("/ZZtPCw-BLYN1g42Kh8xTcRs0Qls=/filters:brightness(10):contrast(20)/my.server.com/some/path/to/image.jpg"); }
public void TestScenario4() { var thumbor = new Thumbor("http://localhost/", "my-security-key"); var thumborUrl = thumbor.BuildEncryptedUrl("smart/my.server.com/some/path/to/image.jpg"); thumborUrl.Should().Be("/-2NHpejRK2CyPAm61FigfQgJBxw=/smart/my.server.com/some/path/to/image.jpg"); }