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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }