コード例 #1
0
 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>());
 }
コード例 #2
0
 private void Apply(UserCreated @event)
 {
     this.ID = @event.ID;
     this._email = @event.Email;
     this._name = @event.Name;
 }