Esempio n. 1
0
 void AssertPipe(PipeObject pipe)
 {
    Assert.AreEqual(id, pipe.Id);
    Assert.IsTrue(pipe.IsActive);
    Assert.IsTrue(pipe.IsAvailableToJoint);
    Assert.AreEqual(NUMBER, pipe.Number);
    Assert.AreEqual(LENGTH, pipe.Length);
    Assert.AreEqual(CONSTRUCTION_STATUS, pipe.ConstructionStatus);
    Assert.AreEqual(INSPECTION_STATUS, pipe.InspectionStatus);
    Assert.AreEqual(MILL, pipe.Mill);
    Assert.AreEqual(DIAMETER, pipe.Diameter);
    Assert.AreEqual(WALL_THICKNESS, pipe.WallThickness);
    Assert.AreEqual(PROD_DATE, pipe.ProductionDate);
    Assert.AreEqual(STATUS, pipe.Status);
 }
Esempio n. 2
0
      public void TestPipeObjectCopyConstructor()
      {
         PipeObject pipe = new PipeObject(SetupMock());

         AssertPipe(pipe);
      }