public void Handle(AssociateShareClassToDocument message)
        {
            Document document = repository.GetById <Document>(message.DocumentId, int.MaxValue);

            DocumentShareClassAssociation association =
                new DocumentShareClassAssociation(document.Id, message.ShareClassId, ShareClassType.CreateFromString(message.ShareClassType));

            document.AssociateWithShareClass(association);

            repository.Save(document, Guid.NewGuid(), null);
        }
        public void Handle(CreateShareClass message)
        {
            ShareClass share = new ShareClass(message.Id, new Ticker(message.Ticker), ShareClassType.CreateFromString(message.Type));

            repository.Save(share, Guid.NewGuid(), null);
        }