Exemple #1
0
 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;
 }
Exemple #4
0
 public OfferingController(IRepositoryChild <Department, Offering> departments, IRepository <Offering> offerings)
 {
     _departments = departments;
     _offerings   = offerings;
 }
 public ChildService(/*ChildDTO child,*/ IRepositoryChild childrepository)
 {
     _repository = childrepository;
 }
Exemple #6
0
 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;
 }
Exemple #8
0
 private static void PrepareRepositories()
 {
     admins   = new DbRepositoryAdmin(ConfigurationManager.AppSettings);
     children = new DbRepositoryChild(ConfigurationManager.AppSettings);
     events   = new DbRepositoryEvent(ConfigurationManager.AppSettings);
 }
Exemple #9
0
 private static void PrepareEntityFrameworkRepositories()
 {
     admins   = new EntityFrameworkRepositoryAdmin();
     children = new EntityFrameworkRepositoryChild();
     events   = new EntityFrameworkRepositoryEvent();
 }