/// <summary> /// Constructor /// </summary> /// <param name="objDataAccess"></param> public AuthLogic(IAzureDataAccess objDataAccess) { // Primesc obiectul, nu e treaba AuthLogic ce dataAccess se foloseste // Unity are grija de dependency injection _dataAccess = objDataAccess; TokenLogic = new TokenLogic(_dataAccess); }
public BusinessLogic(IDataAccess _dataAccess) { FormLogic = new FormLogic(_dataAccess); TokenLogic = new TokenLogic(_dataAccess); UserLogic = new UserLogic(_dataAccess); AuthLogic = new AuthLogic(_dataAccess); CategoryLogic = new CategoryLogic(_dataAccess); }
public AuthLogic(IDataAccess objDataAccess) { //primesc obiectul, nu e treaba UserLogic ce dataAccess se foloseste //unity are grija de dependency injection _dataAccess = objDataAccess; TokenLogic = new TokenLogic(_dataAccess); }
/// <summary> /// /// </summary> /// <param name="dataAccess"></param> public BusinessLogic(IAzureDataAccess dataAccess) { AuthLogic = new AuthLogic(dataAccess); CarLogic = new CarLogic(dataAccess); CarUtilityLogic = new CarUtilityLogic(dataAccess); DriverCarLogic = new DriverCarLogic(dataAccess); MessageLogic = new MessageLogic(dataAccess); TokenLogic = new TokenLogic(dataAccess); UserLogic = new UserLogic(dataAccess); UtilityLogic = new UtilityLogic(dataAccess); }