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