Esempio n. 1
0
 protected bool Equals(PeanutParticipationDto other)
 {
     return(Equals(ParticipationType, other.ParticipationType) && ParticipationState == other.ParticipationState);
 }
Esempio n. 2
0
 public virtual void Update(PeanutParticipationDto peanutParticipationDto, EntityChangedDto entityChangedDto)
 {
     Update(peanutParticipationDto);
     Update(entityChangedDto);
 }
Esempio n. 3
0
        public PeanutParticipation(Peanut peanut, UserGroupMembership userGroupMembership, PeanutParticipationDto participationDto, EntityCreatedDto entityCreatedDto)
        {
            Require.NotNull(peanut, "peanut");
            Require.NotNull(userGroupMembership, "userGroupMembership");
            Require.NotNull(participationDto, "participationDto");
            Require.NotNull(entityCreatedDto, "entityCreatedDto");

            _peanut = peanut;
            _userGroupMembership = userGroupMembership;
            _createdBy           = entityCreatedDto.CreatedBy;
            _createdAt           = entityCreatedDto.CreatedAt;

            Update(participationDto);
        }
Esempio n. 4
0
 private void Update(PeanutParticipationDto participationDto)
 {
     _participationType  = participationDto.ParticipationType;
     _participationState = participationDto.ParticipationState;
 }