public void GetAlignRollerBrgTest() { var controller = new AlignRollerBrgsController(); var result = controller.GetAlignRollerBrg("22206C").GetAwaiter().GetResult() as OkNegotiatedContentResult <AlignRollerBrg>; Assert.IsNotNull(result); }
public void GetAlignRollerBrgTest() { var controller = new AlignRollerBrgsController(); var result = controller.GetAlignRollerBrg("22206C").GetAwaiter().GetResult() as OkNegotiatedContentResult<AlignRollerBrg>; Assert.IsNotNull(result); }
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()); }
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()); }