예제 #1
0
        public void GetGearCoupTest()
        {
            var con = new GearCoupsController();

            var result = con.GetGearCoup("GICL1").GetAwaiter().GetResult() 
                as OkNegotiatedContentResult<GearCoup>;

            Assert.IsNotNull(result);
        }
예제 #2
0
        public void GetGearCouplingsTest()
        {
            var con = new GearCoupsController();
            int expected = 2;

            var result = con.GetGearCouplings();

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