private static DynamicFunctionTransform CreateSubject(FunctionPickerData functionPickerData = null, ExportLinkResolver exportLinkResolver = null) { exportLinkResolver = exportLinkResolver ?? new Mock<ExportLinkResolver>(null).Object; return new DynamicFunctionTransform(CreateSerializer(functionPickerData), exportLinkResolver); }
private static ComposerSerializer CreateSerializer(FunctionPickerData functionPickerData) { var serializer = new Mock<ComposerSerializer>(); serializer.Setup(x => x.Deserialize<FunctionPickerData>(It.IsAny<string>())).Returns(functionPickerData); return serializer.Object; }