示例#1
0
        public void GetSpindleBeltLengthTest()
        {
            var con = new SpindleBeltLengthsController();

            var result = con.GetSpindleBeltLength(36).GetAwaiter().GetResult()
                as OkNegotiatedContentResult<SpindleBeltLength>;

            Assert.IsNotNull(result);
        }
示例#2
0
        public void GetSpindleBeltLengthsTest()
        {
            var con = new SpindleBeltLengthsController();
            int expected = 74;

            var result = con.GetSpindleBeltLengths();

            Assert.IsNotNull(result);
            Assert.AreEqual(expected, result.Count());
        }