public MefSubstituteBuilder AddValue <T>(string contractName, T value) { _batch.AddValue(contractName, value); return(this); }
protected override void AddExports(CompositionBatch batch) { batch.AddValue <IRSettings>(RSettingsStubFactory.CreateForExistingRPath(_testInput.FileSytemSafeName)); }
public static CompositionBatch AddValue <TContract>(this CompositionBatch batch, TContract value) { string contractName = AttributedModelServices.GetContractName(typeof(TContract)); return(batch.AddValue(contractName, value)); }