示例#1
0
 public PartDiamond()
 {
     DiamondMeasurement = new DiamondMeasurement();
     DiamondShape       = new DiamondShape();
     Part = new Part();
     SetDefaults();
 }
示例#2
0
        public double DiamondWeightEstimator(DiamondShape diamondShape, DiamondMeasurement dm)
        {
            DiamondCalculations.CalculateWeight dc = new DiamondCalculations.CalculateWeight();

            var weight = dc.CalculateDiamondWeight(diamondShape.ShapeName, dm);

            return((double)weight);
        }
示例#3
0
        public void TestConstructor()
        {
            int          expected = 11;
            int          actual;
            DiamondShape diamondShape = new DiamondShape(expected);

            actual = diamondShape.DiamondSize;

            Assert.Equal(expected, actual);
        }