コード例 #1
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));
        }
コード例 #2
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));
        }
コード例 #3
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));
        }
コード例 #4
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));
        }
コード例 #5
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));
        }
コード例 #6
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));
        }