public void CreateRecord() { var request = new CreateRecordRequest(RawRequests.CreateRecord); request.Parse(); Assert.Equal("0", request.GameId.ToString()); Assert.Equal("XXXXXX", request.SecretKey); Assert.Equal("xxxxxxxx_YYYYYYYYYY__", request.LoginTicket); Assert.Equal("test", request.TableId); // Assert.Equal("score", request.Values[0].FieldName); // Assert.Equal("string", request.Values[0].FiledType); // Assert.Equal("recordid", request.Values[1].FieldName); // Assert.Equal("string", request.Values[1].FiledType); }
public void CreateRecordTest() { var request = new CreateRecordRequest(RawRequests.CreateRecord); request.Parse(); var result = new CreateRecordResult() { RecordID = "0", TableID = "0", }; result.Fields.Add("hello0"); result.Fields.Add("hello1"); result.Fields.Add("hello2"); var response = new CreateRecordResponse(request, result); response.Build(); }