public void TestMyCustomStepSample() { myCustomStepSample step = new myCustomStepSample(); ICustomRequest request = new customeRequest(); request.AssetId = System.Configuration.ConfigurationManager.AppSettings["AssetId"]; request.MediaAccountName = System.Configuration.ConfigurationManager.AppSettings["MediaAccountName"]; request.MediaAccountKey = System.Configuration.ConfigurationManager.AppSettings["MediaAccountKey"]; Assert.AreEqual(step.execute(request), true); }
private ICustomRequest buildRequest(ButlerProcessRequest xRequest) { ICustomRequest yRequest = new customeRequest(); yRequest.AssetId = xRequest.AssetId; yRequest.ConfigData = xRequest.ConfigData; yRequest.Exceptions = xRequest.Exceptions; yRequest.Log = xRequest.Log; yRequest.MediaAccountKey = xRequest.MediaAccountKey; yRequest.MediaAccountName = xRequest.MediaAccountName; yRequest.MediaStorageConn = xRequest.MediaStorageConn; yRequest.MetaData = xRequest.MetaData; yRequest.ProcessConfigConn = xRequest.ProcessConfigConn; yRequest.ProcessInstanceId = xRequest.ProcessInstanceId; yRequest.ProcessTypeId = xRequest.ProcessTypeId; yRequest.TimeStampProcessingStarted = xRequest.TimeStampProcessingStarted; yRequest.ButlerRequest_ControlFileUri = xRequest.ButlerRequest.ControlFileUri; yRequest.ButlerRequest_MezzanineFiles = xRequest.ButlerRequest.MezzanineFiles; yRequest.StepConfiguration = this.StepConfiguration; return(yRequest); }