private void AddColumnsPrice(BlueprintPriceReport report, IBlueprint aBlueprint)
        {
            int   columnsCount = aBlueprint.GetColumns().Count;
            float columnPrice  = costsNPrices.GetPrice((int)ComponentType.COLUMN);

            report.SetTotalPrice(ComponentType.COLUMN, columnsCount * columnPrice);
        }
        public void ColumnsPersistenceCountTest()
        {
            blueprint1.InsertColumn(new Point(2, 3));
            blueprint1.InsertColumn(new Point(1, 2));
            portfolio.Add(blueprint1);
            IBlueprint retrieved      = portfolio.Get(blueprint1.GetId());
            int        expectedResult = 2;
            int        actualResult   = retrieved.GetColumns().Count;

            Assert.AreEqual(expectedResult, actualResult);
        }
        public void ModifyAdditionTest()
        {
            BuildTestBlueprint();
            portfolio.Add(blueprint1);
            blueprint1.RemoveWall(new Point(0, 2), new Point(4, 2));
            blueprint1.InsertColumn(new Point(3, 3));
            portfolio.Modify(blueprint1);
            blueprint1 = portfolio.Get(blueprint1.GetId());
            bool wallsOk    = blueprint1.GetWalls().Count == 1;
            bool openingsOk = blueprint1.GetOpenings().Count == 1;
            bool columnsOk  = blueprint1.GetColumns().Count == 2;

            Assert.IsTrue(wallsOk && openingsOk && columnsOk);
        }
        public void ModifyDeletionTest()
        {
            BuildTestBlueprint();

            portfolio.Add(blueprint1);

            blueprint1.RemoveColumn(new Point(2, 3));
            portfolio.Modify(blueprint1);

            blueprint1 = portfolio.Get(blueprint1.GetId());

            int expectedResult = 0;
            int actualResult   = blueprint1.GetColumns().Count;

            Assert.AreEqual(expectedResult, actualResult);
        }