public void SetUp() { this.defaultValueArrayFactory = new Mock <IDefaultValueArrayFactory>(); this.parameterTypeSideEffect = new ParameterTypeSideEffect(); this.parameterTypeSideEffect.DefaultValueArrayFactory = defaultValueArrayFactory.Object; }
public void SetUp() { this.cachedReferenceDataService = new Mock <ICachedReferenceDataService>(); this.defaultValueArrayFactory = new Mock <IDefaultValueArrayFactory>(); this.defaultValueArrayFactory.SetupProperty(x => x.CachedReferenceDataService, this.cachedReferenceDataService.Object); this.parameterTypeSideEffect = new ParameterTypeSideEffect(); this.parameterTypeSideEffect.DefaultValueArrayFactory = this.defaultValueArrayFactory.Object; this.parameterTypeSideEffect.CachedReferenceDataService = this.cachedReferenceDataService.Object; }