public void Apply(StudentChangedAddressFact fact) { StreetAddress = fact.StreetAddress; Suburb = fact.Suburb; State = fact.State; PostCode = fact.PostCode; }
public void ChangeAddress(Guid addressId) { var fact = new StudentChangedAddressFact { AggregateRootId = Id, AddressId = addressId, }; Append(fact); Apply(fact); }
public void Apply(StudentChangedAddressFact fact) { AddressId = fact.AddressId; }
public void ChangeAddress(string streetAddress, string suburb, string state, string postcode) { var fact = new StudentChangedAddressFact { AggregateRootId = Id, StreetAddress = streetAddress, Suburb = suburb, State = state, PostCode = postcode, }; Append(fact); Apply(fact); }