public void ShouldThrowDomainEventMapperNotFoundException()
        {
            var domainEventMappingCollection = new NServiceBusEventMappings();
            var domainEvent = new AccommodationLeadApproved
            {
                ID = Guid.NewGuid()
            };

            domainEventMappingCollection.GetMappedObjectFor(domainEvent);
        }
        public void ShouldLocateAnExistingMapperUsingASuppliedDomainEventType()
        {
            var domainEventMappingCollection = new NServiceBusEventMappings();

            domainEventMappingCollection.AddMapper(
                new AccommodationLeadApprovedMapper());

            var domainEvent = new AccommodationLeadApproved
            {
                ID = Guid.NewGuid()
            };

            var mappedEvent =
                domainEventMappingCollection.GetMappedObjectFor(domainEvent);

            Assert.That(mappedEvent, Is.TypeOf <Messages.Events.AccommodationLeadApproved>());
        }