private VPFull GetFilledRandomVPFull(string OmitPropName) { VPFull vpFull = new VPFull(); //CSSPError: property [VPScenario] and type [VPFull] is not implemented //CSSPError: property [VPAmbientList] and type [VPFull] is not implemented //CSSPError: property [VPResultList] and type [VPFull] is not implemented return(vpFull); }
/// <summary> /// Validate function for all VPFullService commands /// </summary> /// <param name="validationContext">System.ComponentModel.DataAnnotations.ValidationContext (Describes the context in which a validation check is performed.)</param> /// <param name="actionDBType">[ActionDBTypeEnum] (CSSPEnums.ActionDBTypeEnum.html) action type to validate</param> /// <returns>IEnumerable of ValidationResult (Where ValidationResult is a container for the results of a validation request.)</returns> private IEnumerable <ValidationResult> Validate(ValidationContext validationContext, ActionDBTypeEnum actionDBType) { string retStr = ""; Enums enums = new Enums(LanguageRequest); VPFull vpFull = validationContext.ObjectInstance as VPFull; vpFull.HasErrors = false; //CSSPError: Type not implemented [VPScenario] of type [VPScenario] //CSSPError: Type not implemented [VPScenario] of type [VPScenario] //CSSPError: Type not implemented [VPAmbientList] of type [List`1] //CSSPError: Type not implemented [VPAmbientList] of type [VPAmbient] //CSSPError: Type not implemented [VPResultList] of type [List`1] //CSSPError: Type not implemented [VPResultList] of type [VPResult] retStr = ""; // added to stop compiling CSSPError if (retStr != "") // will never be true { vpFull.HasErrors = true; yield return(new ValidationResult("AAA", new[] { "AAA" })); } }
public VPFullTest() { vPFull = new VPFull(); }