Пример #1
0
 // Business constructor
 public Activity(
     ProfileQuarter profileQuarter
     ,ActivityReward activityReward
     ,DateTime activityDate
     )
 {
     InitializeResults();
     _profileQuarter = new PredecessorObj<ProfileQuarter>(this, GetRoleProfileQuarter(), profileQuarter);
     _activityReward = new PredecessorObj<ActivityReward>(this, GetRoleActivityReward(), activityReward);
     _activityDate = activityDate;
 }
Пример #2
0
            public CorrespondenceFact CreateFact(FactMemento memento)
            {
                ActivityReward newFact = new ActivityReward(memento);

                return newFact;
            }
Пример #3
0
 // Results
 // Business constructor
 public ActivityReward__points(
     ActivityReward activityReward
     ,IEnumerable<ActivityReward__points> prior
     ,int value
     )
 {
     InitializeResults();
     _activityReward = new PredecessorObj<ActivityReward>(this, GetRoleActivityReward(), activityReward);
     _prior = new PredecessorList<ActivityReward__points>(this, GetRolePrior(), prior);
     _value = value;
 }
 public ActivityOptionViewModel(ActivityReward reward, ActivitySelection activitySelection)
 {
     _reward = reward;
     _activitySelection = activitySelection;
 }