public Contract() { iaddr = AddrFactory.CreateAddr(); Response = System.Web.HttpContext.Current.Response; Request = System.Web.HttpContext.Current.Request; Server = System.Web.HttpContext.Current.Server; Session = System.Web.HttpContext.Current.Session; Application = System.Web.HttpContext.Current.Application; tools = ToolsFactory.CreateTools(); addr = new Addr(); MyContract = ContractFactory.CreateContract(); MyContractTemplate = ContractTemplateFactory.CreateContractTemplate(); MySupplier = SupplierFactory.CreateSupplier(); credit = new Credit(); MyOrders = OrdersFactory.CreateOrders(); //MyContractSigned = ContractSignedFactory.CreateContractSigned(); }