Пример #1
0
        public void ConvertBoardToPlate()
        {
            order.AddBoard(new Board(1000, br));
            pc.CalculateBoards();
            Plate actualPlate = pc.GetPlate();

            Assert.AreEqual(60, actualPlate.Length);
            Assert.AreEqual(110, actualPlate.Width);
            Assert.AreEqual(2, actualPlate.Quantity);
            Assert.AreEqual(Surfaces.H1, actualPlate.Surface);
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            PlateCalculator calc = new PlateCalculator(order);

            calc.CalculateBoards();
            ExcelCreator excel = new ExcelCreator(calc.Plates, @"C:\Users\casp4\Documents");

            excel.CreateExcel();
        }