public void exec_ServiceFunctionWithOneComplexParameter() { // Arrange TestCaseTesterController controller = new TestCaseTesterController(); TestCaseTesterComplexP p = new TestCaseTesterComplexP(); //p.MFieldbytearray50 p.MFielddatetime = new DateTime(2013, 1, 1); p.MFielddecimal = 1000000; p.MFielddouble = Double.MaxValue; p.MFieldfloat = float.MaxValue; p.MFieldint16 = Int16.MaxValue; p.MFieldint32 = Int32.MaxValue; p.MFieldint64 = Int64.MaxValue; p.MFieldntext = "Some Text"; p.MFieldstring = "Some String"; string jSonData = FWUtils.EntityUtils.JsonSerializeObject(p); FWPostBody body = new FWPostBody(jSonData); // Act ServiceActionResult res = controller.Exec("ServiceFunctionWithOneComplexParameter", body); // Assert Assert.AreEqual("OK!", res.data); }
public string ServiceFunctionWithOneComplexParameter(TestCaseTesterComplexP p) { //Check.Assert(p != null, "Complex parameter can't be null"); return("OK!"); }