private void AddPrices()
 {
     storage.Clear();
     storage.AddCostPrice((int)ComponentType.WALL, 50, 100);
     storage.AddCostPrice((int)ComponentType.BEAM, 50, 75);
     storage.AddCostPrice((int)ComponentType.COLUMN, 50, 75);
     storage.AddCostPrice((int)ComponentType.WINDOW, 50, 75);
     storage.AddCostPrice((int)ComponentType.DOOR, 50, 100);
 }
Beispiel #2
0
 public void SetUp()
 {
     usersStorage = new UserRepository();
     usersStorage.Clear();
     connector      = new SessionConnector();
     currentSession = connector.LogIn("admin", "admin", (IUserRepository)usersStorage);
     administrator  = new UserAdministrator(currentSession, usersStorage);
     administrator.Add(new Designer("TestDesigner", "TestDesigner", "TestDesigner", "TestDesigner", DateTime.Now));
     pricesNcosts = new PriceCostRepository();
     pricesNcosts.Clear();
     wallType = (int)ComponentType.WALL;
     pricesNcosts.AddCostPrice(wallType, 50, 100);
     manager = new CostsAndPricesManager(currentSession, pricesNcosts);
 }
Beispiel #3
0
 public void SetUp()
 {
     prices.Clear();
     prices.AddCostPrice((int)ComponentType.WALL, 50, 100);
 }