public void ShouldWorkWithDataObjectDeletedEvent()
        {
            var serializer = new XmlEventSerializer();
            var @event = new DataObjectDeletedEvent(typeof(Firm), 1L);

            var serialized = serializer.Serialize(@event);
            var deserialized = serializer.Deserialize(serialized);

            Assert.That(deserialized, Is.EqualTo(@event));
        }
 private bool Equals(DataObjectDeletedEvent other)
 {
     return DataObjectType == other.DataObjectType && DataObjectId == other.DataObjectId;
 }