public void ship_created_domain_event_is_raised() { _raisedDomainEvent.ShouldNotBeNull(); _raisedDomainEvent.ShouldBeOfType <ShipCreatedDomainEvent>(); var shipCreatedDomainEvent = (ShipCreatedDomainEvent)_raisedDomainEvent; shipCreatedDomainEvent.ShipId.ShouldBe(_createdShipId); }