public AtomEntry ConvertDomainEventToAtomEntry(DomainEvent eventToAdd)
        {
            var atomEntry  = new AtomEntry();
            var serializer = new JsonEventSerialisation();
            var content    = serializer.GetContentWithContentType(eventToAdd);

            atomEntry.Content = content.Content;
            atomEntry.Id      = eventToAdd.Id;
            atomEntry.Updated = DateTime.Now;
            atomEntry.Title   = content.ContentType;
            return(atomEntry);
        }
 public void SerializeADummyEvent()
 {
     var serializer = new JsonEventSerialisation();
     var data = serializer.GetContentWithContentType(new DummyDomainEvent(Guid.NewGuid().ToString()));
 }
Esempio n. 3
0
 public void SerializeADummyEvent()
 {
     var serializer = new JsonEventSerialisation();
     var data       = serializer.GetContentWithContentType(new DummyDomainEvent(Guid.NewGuid().ToString()));
 }