示例#1
0
		public bool HelperToTestHelpers(string name, PreviewResponseActionArgs e, ResolvedAction[] actions)
		{
			if (CreateATempFilename(name).Length == 0)
				return false;
			if (CreateResponseForPreview(e, actions) == null)
				return false;
			if (CreateRequestForPreview(e.DocID) == null)
				return false;

			return true;
		}
示例#2
0
		public void DoActionsTestHelper(Response response, PreviewResponseActionArgs e)
		{
			ResolvedAction pdfAction = null;
			ResolvedAction cleanAction = null;
			foreach (ResolvedAction action in response.ResolvedActions)
			{
				if (action.Action.ClassName == "Workshare.Policy.Actions.CleanUserAction")
					cleanAction = action;
				else if (action.Action.ClassName == "Workshare.Policy.Actions.PDFUserAction")
					pdfAction = action;
			}
			DoActions(pdfAction, cleanAction, e);            
		}