예제 #1
0
 protected bool Equals(PeanutParticipationDto other)
 {
     return(Equals(ParticipationType, other.ParticipationType) && ParticipationState == other.ParticipationState);
 }
예제 #2
0
 public virtual void Update(PeanutParticipationDto peanutParticipationDto, EntityChangedDto entityChangedDto)
 {
     Update(peanutParticipationDto);
     Update(entityChangedDto);
 }
예제 #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);
        }
예제 #4
0
 private void Update(PeanutParticipationDto participationDto)
 {
     _participationType  = participationDto.ParticipationType;
     _participationState = participationDto.ParticipationState;
 }