SubstituteTokensInString() public method

Substitutes the property tokens in the supplied string.
public SubstituteTokensInString ( DD.CBU.CaasDeploy.Library.Contracts.RuntimeContext runtimeContext, DD.CBU.CaasDeploy.Library.Contracts.TaskContext taskContext, string input ) : Task
runtimeContext DD.CBU.CaasDeploy.Library.Contracts.RuntimeContext The runtime context.
taskContext DD.CBU.CaasDeploy.Library.Contracts.TaskContext The task execution context.
input string The input string.
return Task
Ejemplo n.º 1
0
        public async Task ServerImage_SubstituteTokensInString_NotFound()
        {
            var client = new FakeHttpClient();
            client.AddResponse("/oec/0.9/base/imageWithDiskSpeed?name=RedHat 6 64-bit 2 CPU", "Image_Get_NotFound.xml");

            var macro = new ImageMacro();
            var input = "$serverImage['NA9', 'RedHat 6 64-bit 2 CPU']";
            await macro.SubstituteTokensInString(_runtimeContext, null, input);
        }