示例#1
0
        public static OpenHouseController GetOpenHouseController(OpenHousePage openHousePage)
        {
            IOpenHouseOutput openHouseOutput = new OpenHousePresenter(openHousePage);
            ICaseCRUD        caseCRUD        = new CaseCRUD();
            IRealtorCRUD     realtorCRUD     = new RealtorCRUD();
            IOpenHouseInput  openHouseInput  = new OpenHouseLogic(openHouseOutput, caseCRUD, realtorCRUD);

            return(new OpenHouseController(openHouseInput));
        }
示例#2
0
        public static EstimatesController GetEstimatesController(PostalCodeEstimates postalCodeEstimates)
        {
            IEstimatesOutput estimatesOutput = new EstimatesPresenter(postalCodeEstimates);
            ICaseCRUD        caseCRUD        = new CaseCRUD();
            IPropertyCRUD    propertyCRUD    = new PropertyCRUD();
            IEstimatesInput  estimatesInput  = new CalculateAverageM2PriceForArea(estimatesOutput, caseCRUD, propertyCRUD);

            return(new EstimatesController(estimatesInput));
        }
示例#3
0
        public static DeleteEntryController DeleteEntryController(EntryPage entryPage)
        {
            IDeleteEntryOutput deleteEntryOutput = new DeleteEntryPresenter(entryPage);
            ICaseCRUD          caseCRUD          = new CaseCRUD();
            IPropertyCRUD      propertyCRUD      = new PropertyCRUD();
            IAddressCRUD       addressCRUD       = new AddressCRUD();
            IDeleteEntryInput  deleteEntryInput  = new DeleteEntry(deleteEntryOutput, caseCRUD, propertyCRUD, addressCRUD);

            return(new DeleteEntryController(deleteEntryInput));
        }
示例#4
0
        public static ShowEntryController GetShowEntryController(GetEntryPage getEntryPage)
        {
            IShowEntryOutput entryOutput  = new GetEntryPresenter(getEntryPage);
            IAddressCRUD     addressCRUD  = new AddressCRUD();
            ICaseCRUD        caseCRUD     = new CaseCRUD();
            IPropertyCRUD    propertyCRUD = new PropertyCRUD();
            IShowEntryInput  entryInput   = new ShowEntries(entryOutput, addressCRUD, caseCRUD, propertyCRUD);

            return(new ShowEntryController(entryInput));
        }
示例#5
0
        public static UpdateEntryController GetEntryEditCaseData(EditEntryPage editEntryPage)
        {
            IUpdateEntryOutput entryOutput  = new UpdateEntryPresenter(editEntryPage);
            ICaseCRUD          caseCRUD     = new CaseCRUD();
            IPropertyCRUD      propertyCRUD = new PropertyCRUD();
            IAddressCRUD       addressCRUD  = new AddressCRUD();

            IUpdateEntryInput updateEntryInput = new RunUpdateEntry(entryOutput, caseCRUD, propertyCRUD, addressCRUD);

            return(new UpdateEntryController(updateEntryInput));
        }
示例#6
0
        public static PrintEntryController GetPrintEntryController(GetEntryPage getEntryPage)
        {
            IPrintEntriesOutput printOutput  = new PrintEntryPresenter(getEntryPage);
            IAddressCRUD        addressCRUD  = new AddressCRUD();
            ICaseCRUD           caseCRUD     = new CaseCRUD();
            IPropertyCRUD       propertyCRUD = new PropertyCRUD();
            IRealtorCRUD        realtorCRUD  = new RealtorCRUD();
            IPrintEntriesInput  printInput   = new PrintEntry(printOutput, addressCRUD, caseCRUD, propertyCRUD, realtorCRUD);

            return(new PrintEntryController(printInput));
        }
示例#7
0
        public static CreateEntryController GetCreateEntryController(CreateEntryPage createEntryPage)
        {
            ICreateEntryOutput createcaseOutput = new CreateEntryPresenter(createEntryPage);
            ICaseCRUD          caseCRUD         = new CaseCRUD();
            IPropertyCRUD      propertyCRUD     = new PropertyCRUD();
            IAddressCRUD       addressCRUD      = new AddressCRUD();

            ICreateEntryInput createcaseInput = new RunCreateEntry(createcaseOutput, caseCRUD, propertyCRUD, addressCRUD);

            return(new CreateEntryController(createcaseInput));
        }