public void SetUp()
        {
            this.secutrityContext = new Mock <ISecurityContext>();
            this.transaction      = null;

            this.PopulateParameterTypes();

            this.cachedReferenceDataService = new Mock <ICachedReferenceDataService>();
            this.cachedReferenceDataService.Setup(x => x.QueryParameterTypes(It.IsAny <NpgsqlTransaction>(), It.IsAny <ISecurityContext>())).Returns(this.parameterTypes);
            this.cachedReferenceDataService.Setup(x => x.QueryParameterTypeComponents(It.IsAny <NpgsqlTransaction>(), It.IsAny <ISecurityContext>())).Returns(this.parameterTypeComponents);
            this.cachedReferenceDataService.Setup(x => x.QueryDependentParameterTypeAssignments(It.IsAny <NpgsqlTransaction>(), It.IsAny <ISecurityContext>())).Returns(this.dependentParameterTypeAssignments);
            this.cachedReferenceDataService.Setup(x => x.QueryIndependentParameterTypeAssignments(It.IsAny <NpgsqlTransaction>(), It.IsAny <ISecurityContext>())).Returns(this.independentParameterTypeAssignments);

            this.defaultValueArrayFactory = new DefaultValueArrayFactory();
            this.defaultValueArrayFactory.CachedReferenceDataService = this.cachedReferenceDataService.Object;
        }
        public void SetUp()
        {
            this.secutrityContext = new Mock <ISecurityContext>();
            this.transaction      = null;

            this.PopulateParameterTypes();

            this.parameterTypeService = new Mock <IParameterTypeService>();
            this.parameterTypeService.Setup(x => x.GetShallow(It.IsAny <NpgsqlTransaction>(), It.IsAny <string>(),
                                                              It.IsAny <IEnumerable <Guid> >(), It.IsAny <ISecurityContext>())).Returns(this.parameterTypes);

            this.parameterTypeComponentService = new Mock <IParameterTypeComponentService>();
            this.parameterTypeComponentService.Setup(x => x.GetShallow(It.IsAny <NpgsqlTransaction>(), It.IsAny <string>(),
                                                                       It.IsAny <IEnumerable <Guid> >(), It.IsAny <ISecurityContext>())).Returns(this.parameterTypeComponents);

            this.defaultValueArrayFactory = new DefaultValueArrayFactory();
            this.defaultValueArrayFactory.ParameterTypeService          = this.parameterTypeService.Object;
            this.defaultValueArrayFactory.ParameterTypeComponentService = this.parameterTypeComponentService.Object;
        }