Ejemplo n.º 1
0
 public PartDiamond()
 {
     DiamondMeasurement = new DiamondMeasurement();
     DiamondShape       = new DiamondShape();
     Part = new Part();
     SetDefaults();
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        public void TestConstructor()
        {
            int          expected = 11;
            int          actual;
            DiamondShape diamondShape = new DiamondShape(expected);

            actual = diamondShape.DiamondSize;

            Assert.Equal(expected, actual);
        }