public async Task<IntDO> TestInt(IntDO param) { return param; }
public void TestInt() { IntDO d = new IntDO(); Task<IntDO> t; d.Value = int.MinValue; t = service.TestInt(d); Assert.IsTrue(t.Wait(1000)); Assert.AreEqual(d.Value, t.Result.Value); d.Value = int.MaxValue; t = service.TestInt(d); Assert.IsTrue(t.Wait(1000)); Assert.AreEqual(d.Value, t.Result.Value); }
public async Task <IntDO> TestInt(IntDO param) { return(param); }