// Use this for initialization void Start() { dataProvider = new Plan2Data(PreferedDataProvider.XmlDataProvider); logic = new Plan2BusinessLogic(ref dataProvider); //Desired usage (in Business Logic class methods) : /* * logic->SortAllReports() * { * dataProvider->Give me all the reports(database is automatically selected by API) * * //sort reports here * * .//return sorted data * } */ }
public Plan2BusinessLogic(ref Plan2Data dataRef) { this.dataRef = dataRef; }