public BusinessLayer() { repo = new RepositoryAbstraction(); idac = (IRepositoryDataAccount)repo; authService = (IAuthenticationService)repo; state = new SilverState(this); }
public T CreateInstance <T>(T trep) where T : IRepositoryDataAccount, IAuthenticationService, new() { trep = new T(); _irepdacc = (IRepositoryDataAccount)trep; _irepdauth = (IAuthenticationService)trep; return(trep); }
public RepositoryAbstraction() { // _irepdacc = GenericFactory<RepositoryMySql, IRepositoryDataAccount>.CreateInstance(); // _irepdauth = GenericFactory<RepositoryMySql, IRepositoryDataAuthentication>.CreateInstance(); _irepdacc = GenericFactory <Repository, IRepositoryDataAccount> .CreateInstance(); _irepdauth = GenericFactory <Repository, IRepositoryDataAuthentication> .CreateInstance(); }
public RepositoryAbstraction() { _irepdacc = GenericFactory <Repository, IRepositoryDataAccount> .CreateInstance(); _irepdauth = GenericFactory <Repository, IAuthenticationService> .CreateInstance(); }
public BusinessLayer(IRepositoryDataAuthentication idauth, IRepositoryDataAccount idacc) { idau = idauth; idac = idacc; }
public RepositoryAbstraction() { _iRepositoryDataAccount = GenericFactory <RepositorySQL, IRepositoryDataAccount> .CreateInstance(); _iRepositoryDataAuthentication = GenericFactory <RepositorySQL, IRepositoryDataAuthentication> .CreateInstance(); }
public BusinessAbstraction(IRepositoryDataAuthentication idau, IRepositoryDataAccount idac) { _idac = idac; _idau = idau; }