public ComplexPropertyAction(IComplexObjectSerializerFactory serializerFactory, IPiiPropertyProcessor piiProcessor) { CodeContract.RequiresArgumentNotNull <IComplexObjectSerializerFactory>(serializerFactory, "serializerFactory"); CodeContract.RequiresArgumentNotNull <IPiiPropertyProcessor>(piiProcessor, "piiProcessor"); this.serializerFactory = serializerFactory; this.piiProcessor = piiProcessor; converterToHashValue = ((object value) => this.piiProcessor.ConvertToHashedValue(value)); converterToRawValue = ((object value) => this.piiProcessor.ConvertToRawValue(value).ToString()); }
public PiiAction(IPiiPropertyProcessor piiPropertyProcessor) { CodeContract.RequiresArgumentNotNull <IPiiPropertyProcessor>(piiPropertyProcessor, "piiPropertyProcessor"); this.piiPropertyProcessor = piiPropertyProcessor; }