public async Task AddressBoxNumberWasCorrectedChangesBoxNumber( AddressWasRegistered addressWasRegistered, AddressBoxNumberWasCorrected addressBoxNumberWasCorrected) { await Assert( Given(addressWasRegistered, addressBoxNumberWasCorrected) .Expect(ctx => ctx.AddressList, new AddressListItem { AddressId = addressWasRegistered.AddressId, StreetNameId = addressWasRegistered.StreetNameId, HouseNumber = addressWasRegistered.HouseNumber, BoxNumber = addressBoxNumberWasCorrected.BoxNumber })); }
public async Task AddressBoxNumberWasCorrectedChangesBoxNumber( AddressWasRegistered addressWasRegistered, AddressBoxNumberWasCorrected addressBoxNumberWasCorrected) { await Assert( Given(addressWasRegistered, addressBoxNumberWasCorrected) .Expect(ctx => ctx.AddressDetail, new AddressDetailItem { AddressId = addressWasRegistered.AddressId, StreetNameId = addressWasRegistered.StreetNameId, HouseNumber = addressWasRegistered.HouseNumber, BoxNumber = addressBoxNumberWasCorrected.BoxNumber, VersionTimestamp = addressBoxNumberWasCorrected.Provenance.Timestamp })); }
private void When(AddressBoxNumberWasCorrected @event) { _boxNumber = new BoxNumber(@event.BoxNumber); }