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); }
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); }