public void GetPMSrvMotorParaTest() { var con = new PMSrvMotorParasController(); var result = con.GetPMSrvMotorPara("110SJT-M040D").GetAwaiter().GetResult() as OkNegotiatedContentResult <PMSrvMotorPara>; Assert.IsNotNull(result); }
public void GetPMSrvMotorParasTest() { var con = new PMSrvMotorParasController(); int expected = 215; var result = con.GetPMSrvMotorParas(); Assert.IsNotNull(result); Assert.AreEqual(expected, result.Count()); }