예제 #1
0
        public void Can_log_Country_Created()
        {
            var @event = new CountryCreated();

            _serviceBus.PublishMessage(@event);
            AssertAdminActivityLog(@event, AdminActivityLogCategory.Country);
        }
예제 #2
0
파일: Country.cs 프로젝트: petegee/DsSpeeds
 public void Apply(CountryCreated createdEvent)
 {
     Mapper.Map(createdEvent, this);
 }
 public void Consume(CountryCreated message)
 {
     _eventHandlers.Handle(message);
 }
예제 #4
0
 public void Handle(CountryCreated @event)
 {
     AddActivityLog(AdminActivityLogCategory.Country, @event);
 }
예제 #5
0
 public void Apply(CountryCreated createdEvent)
 {
     CountryName = createdEvent.CountryName;
 }