Exemplo n.º 1
0
        public static TECPanel TestPanel(TECCatalogs catalogs, Random rand)
        {
            TECPanel panel = new TECPanel(catalogs.PanelTypes.RandomElement(rand));

            panel.Description = "Test Panel";
            panel.AssignRandomScopeProperties(catalogs, rand);
            return(panel);
        }
Exemplo n.º 2
0
        public void AddPanel()
        {
            //Arrange
            TECPanel panel = ModelCreation.TestPanel(bid.Catalogs, rand);

            panel.AssignRandomScopeProperties(bid.Catalogs, rand);

            MaterialSummaryVM matVM = new MaterialSummaryVM(bid, cw);

            //Act
            bid.Panels.Add(panel);

            //Assert
            AssertMaterialVMMatchesCostBatch(matVM, panel.CostBatch);
        }