public void ShouldReturnABusEventForAccommodationLeadCreated() { var id = Guid.NewGuid(); var mapper = new AccommodationLeadCreatedMapper(); var domainEvent = new AccommodationLeadCreated { ID = id, Name = "Something", Email = "*****@*****.**" }; Assert.That(mapper.Map(domainEvent), Is.TypeOf<Messages.Events.AccommodationLeadCreated>()); }
private void Apply(AccommodationLeadCreated @event) { ID = @event.ID; _name = @event.Name; _email = @event.Email; }