private CloudinaryImage_WithChainedTransformation_Chains ( ) : void | ||
return | void |
public void CloudinaryImage_WithChainedTransformation_Chains()
{
var first = new Transformation(35, 99)
{
Radius = 4,
Format = "png"
};
var second = new TransformationBase()
{
Angle = new Angle(45)
};
var chained = new ChainedTransformation(first, second);
string url = Url.CloudinaryImage("chained", chained).ToString();
Assert.AreEqual("http://res.cloudinary.com/test/image/upload/w_35,h_99,r_4/a_45/chained.png", url);
}