public SetTemplateID ( string templateID ) : void | ||
templateID | string | Template ID of the assmebly |
return | void |
public void SetTemplateID(string templateID)
{
this.templateID = templateID;
}
public void NonExistingTemplate() { ITransloadit transloadit = new Transloadit.Transloadit("YOUR-PUBLIC-API-KEY", "YOUR-SECRET-KEY"); IAssemblyBuilder assembly = new AssemblyBuilder(); assembly.SetTemplateID("YOUR-NON-EXISTING-TEMPLATE-ID"); TransloaditResponse response = transloadit.InvokeAssembly(assembly); Assert.AreEqual("TEMPLATE_NOT_FOUND", (string)(response.Data["error"])); }