public OrganizationController(IRepositoryChild <Country, Organization> countries, IRepository <Organization> organizations) { _countries = countries; _organizations = organizations; }
public ConcurrentService( IRepositoryAdmin <string, Admin> admins, IRepositoryChild <int, Child> children, IRepositoryEvent <int, Event> events) { this.admins = admins; this.children = children; this.events = events; loggedAdmins = new ConcurrentDictionary <String, IObserver>(); logger.Debug("Created new ConcurrentService instance"); }
public FamilyController(IRepositoryChild <Offering, Family> offerings, IRepository <Family> families) { _offerings = offerings; _families = families; }
public OfferingController(IRepositoryChild <Department, Offering> departments, IRepository <Offering> offerings) { _departments = departments; _offerings = offerings; }
public ChildService(/*ChildDTO child,*/ IRepositoryChild childrepository) { _repository = childrepository; }
public BusinessController(IRepositoryChild <Family, Business> families, IRepository <Business> businesses) { _families = families; _businesses = businesses; }
public CountryController(IRepositoryChild <Business, Country> businesses, IRepository <Country> countries) { _businesses = businesses; _countries = countries; }
private static void PrepareRepositories() { admins = new DbRepositoryAdmin(ConfigurationManager.AppSettings); children = new DbRepositoryChild(ConfigurationManager.AppSettings); events = new DbRepositoryEvent(ConfigurationManager.AppSettings); }
private static void PrepareEntityFrameworkRepositories() { admins = new EntityFrameworkRepositoryAdmin(); children = new EntityFrameworkRepositoryChild(); events = new EntityFrameworkRepositoryEvent(); }