コード例 #1
0
        public void GetAlignRollerBrgTest()
        {
            var controller = new AlignRollerBrgsController();

            var result = controller.GetAlignRollerBrg("22206C").GetAwaiter().GetResult()
                         as OkNegotiatedContentResult <AlignRollerBrg>;

            Assert.IsNotNull(result);
        }
コード例 #2
0
        public void GetAlignRollerBrgTest()
        {
            var controller = new AlignRollerBrgsController();

            var result = controller.GetAlignRollerBrg("22206C").GetAwaiter().GetResult() 
                as OkNegotiatedContentResult<AlignRollerBrg>;

            Assert.IsNotNull(result);
        }
コード例 #3
0
        public void GetAlignRollerBearingsTest()
        {
            var controller = new AlignRollerBrgsController();
            int expected = 11;

            var result = controller.GetAlignRollerBearings();
            foreach(var r in result)
            {
                //r.TypeID = r.TypeID.Trim();
                r.Manufacturer = r.Manufacturer.Trim();
            }
            controller.SaveChanges();

            Assert.IsNotNull(result);
            Assert.AreEqual(expected, result.Count());
        }
コード例 #4
0
        public void GetAlignRollerBearingsTest()
        {
            var controller = new AlignRollerBrgsController();
            int expected   = 11;

            var result = controller.GetAlignRollerBearings();

            foreach (var r in result)
            {
                //r.TypeID = r.TypeID.Trim();
                r.Manufacturer = r.Manufacturer.Trim();
            }
            controller.SaveChanges();

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