public void ShouldWorkWithRelatedDataObjectOutdatedEventOfLong()
        {
            var serializer = new XmlEventSerializer();
            var @event = new RelatedDataObjectOutdatedEvent<long>(typeof(Firm), 1L);

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

            Assert.That(deserialized, Is.EqualTo(@event));
        }
        public void ShouldWorkWithRelatedDataObjectOutdatedEventOfStatisticsKey()
        {
            var serializer = new XmlEventSerializer();
            var @event = new RelatedDataObjectOutdatedEvent<StatisticsKey>(typeof(Firm), new StatisticsKey { ProjectId = 1L, CategoryId = 1L });

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

            Assert.That(deserialized, Is.EqualTo(@event));
        }
        public void ShouldWorkWithDataObjectReplacedEvent()
        {
            var serializer = new XmlEventSerializer();
            var @event = new DataObjectReplacedEvent(typeof(Firm), 1L);

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

            Assert.That(deserialized, Is.EqualTo(@event));
        }