コード例 #1
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);
 }
        public void SetUp()
        {
            connector = new SessionConnector();
            IUserRepository users    = new UserRepository();
            Session         aSession = connector.LogIn("admin", "admin", users);

            storage      = new PriceCostRepository();
            costsNPrices = new CostsAndPricesManager(aSession, storage);
            IPriceCostRepository pricesNcosts = new PriceCostRepository();

            reporter = new BlueprintReportGenerator(pricesNcosts);
            toReport = new Blueprint(10, 10, "TestBlueprint");
            SetBlueprint();
            AddPrices();
        }
コード例 #3
0
 public CostsAndPricesManager(Session aSession, IPriceCostRepository aCatalog)
 {
     currentSession = aSession;
     catalog        = aCatalog;
 }
 public BlueprintReportGenerator(IPriceCostRepository catalog)
 {
     costsNPrices = catalog;
 }