Esempio n. 1
0
        private void Update(BillDto billDto)
        {
            Require.NotNull(billDto, "billDto");

            _subject = billDto.Subject;
            _amount  = billDto.Amount;
        }
Esempio n. 2
0
        public Bill(UserGroup userGroup, BillDto billDto, UserGroupMembership creditor, IList <BillUserGroupDebitor> debitors, IList <BillGuestDebitor> guestDebitors, EntityCreatedDto createdDto)
        {
            Require.NotNull(createdDto, "createdDto");
            Require.NotNull(userGroup, "userGroup");
            Require.NotNull(billDto, "billDto");
            Require.NotNull(creditor, "creditor");
            Require.NotNull(debitors, "debitors");
            Require.NotNull(guestDebitors, "guestDebitors");

            _userGroup = userGroup;
            _createdBy = createdDto.CreatedBy;
            _createdAt = createdDto.CreatedAt;
            _creditor  = creditor;

            Update(billDto);

            _userGroupDebitors = debitors;
            _guestDebitors     = guestDebitors;
        }
Esempio n. 3
0
 /// <summary>
 /// Aktualisiert die Daten der Rechnung.
 /// </summary>
 /// <param name="billDto"></param>
 /// <param name="entityChanged"></param>
 public virtual void Update(BillDto billDto, EntityChangedDto entityChanged)
 {
     Update(billDto);
     Update(entityChanged);
 }