private static TWrapper CreateWrapper(IJointTour jointTour, IHouseholdDayWrapper householdDayWrapper) { var type = typeof(TWrapper); var instance = Activator.CreateInstance(type, jointTour, householdDayWrapper); return((TWrapper)instance); }
public JointTourWrapper(IJointTour jointTour, IHouseholdDayWrapper householdDayWrapper) { _jointTour = jointTour; _exporter = Global .ContainerDaySim.GetInstance <IPersistenceFactory <IJointTour> >() .Exporter; // relations properties Household = householdDayWrapper.Household; HouseholdDay = householdDayWrapper; }
public JointTourWrapper(IJointTour jointTour, IHouseholdDayWrapper householdDayWrapper) { _jointTour = jointTour; _exporter = Global .Kernel .Get <IPersistenceFactory <IJointTour> >() .Exporter; // relations properties Household = householdDayWrapper.Household; HouseholdDay = householdDayWrapper; }
IJointTourWrapper IJointTourCreator.CreateWrapper(IJointTour jointTour, IHouseholdDayWrapper householdDayWrapper) { return(CreateWrapper(jointTour, householdDayWrapper)); }
public JointTourWrapper(IJointTour jointTour, IHouseholdDayWrapper householdDayWrapper) : base(jointTour, householdDayWrapper) { _jointTour = (IActumJointTour)jointTour; }