public override ResetOtherTypeNestedOutput TestResetOtherTypeFields(ResetNestedInput input) { _basicTestType = new BasicContractTestType(); _basicTestType.SetBasicContractTestType(input.Int32Value); var s = _basicTestType.CheckFunc().Invoke(input.StringValue); var testType = _basicTestType.CheckTypeValue(); _basicTestType.SetStaticField(); BasicContractTestType.BasicContractTestTypePublicStaticField = new BasicContractTestType(); var innerTestTypeObj = new BasicContractTestType.InnerTestType(1); innerTestTypeObj.SetStaticField(); BasicContractTestType.InnerTestType.InnerTestTypePublicStaticField = new BasicContractTestType.InnerTestType(2); var innerContractTypeObj = new InnerContractType(); innerContractTypeObj.SetStaticField(); InnerContractType.InnerContractTypePublicStaticField = new InnerContractType(); return(new ResetOtherTypeNestedOutput { TypeConst = testType.CheckConstNumberValue(), TypeNumber = testType.CheckNumberValue(), BasicTypeNumber = _basicTestType.CheckNumberValue(), BasicTypeStaticNumber = _basicTestType.CheckStaticNumberValue(), StringValue = s }); }
public override BoolValue CheckNonContractTypesStaticFieldsReset(Empty input) { var res = InnerContractType.CheckAllStaticFieldsReset() && BasicContractTestType.CheckAllStaticFieldsReset() && BasicContractTestType.InnerTestType.CheckInnerTypeStaticFieldsReset(); return(new BoolValue { Value = res }); }
public void SetStaticField() { _basicContractTestTypePrivateStaticField = this; }