private static AllTestRecord CreateExpectedTestData() { var fixedTestData = new FixedTest(); fixedTestData.Value[0] = 5; return new AllTestRecord { arrayTest = new List<long> { 1, 2, 3, 4 }, booleanTest = true, bytesTest = new byte[] { 1, 2, 3, 4 }, doubleTest = 5.0, enumTest = AllEnum.BAR, fixedTest = fixedTestData, floatTest = 99.0f, intTest = 3, longTest = 4, stringTest = "required", mapTest = new Dictionary<string, long> { { "foo", 1}, { "bar", 2} }, nestedTest = new AllTestRecord { booleanTest = true, bytesTest = new byte[] { 1 }, stringTest = "required", fixedTest = fixedTestData, arrayTest = new List<long> { 1, 2, 3, 4 }, mapTest = new Dictionary<string, long> { { "foo", 1}, { "bar", 2} }, } }; }
public override AllTestRecord echoParameters(bool booleanTest, int intTest, long longTest, float floatTest, double doubleTest, byte[] bytesTest, string stringTest, AllEnum enumTest, FixedTest fixedTest, IList<long> arrayTest, IDictionary<string, long> mapTest, AllTestRecord nestedTest) { return new AllTestRecord { stringTest = stringTest, booleanTest = booleanTest, intTest = intTest, arrayTest = arrayTest, bytesTest = bytesTest, doubleTest = doubleTest, enumTest = enumTest, fixedTest = fixedTest, floatTest = floatTest, longTest = longTest, mapTest = mapTest, nestedTest = nestedTest }; }