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