Package com.saasovation.collaboration.application.forum.data

Examples of com.saasovation.collaboration.application.forum.data.DiscussionData


        DomainRegistry.forumRepository().save(forum);

        Discussion discussion = this.discussionAggregate(forum);
        DomainRegistry.discussionRepository().save(discussion);

        DiscussionData discussionData =
                discussionQueryService.discussionDataOfId(
                        discussion.tenant().id(), discussion.discussionId().id());

        assertNotNull(discussionData);
        assertEquals(discussion.discussionId().id(), discussionData.getDiscussionId());
        assertEquals(discussion.forumId().id(), discussionData.getForumId());
        assertEquals(discussion.tenant().id(), discussionData.getTenantId());
        assertEquals(discussion.author().emailAddress(), discussionData.getAuthorEmailAddress());
        assertEquals(discussion.author().identity(), discussionData.getAuthorIdentity());
        assertEquals(discussion.author().name(), discussionData.getAuthorName());
        assertEquals(discussion.subject(), discussionData.getSubject());
        assertEquals(discussion.exclusiveOwner(), discussionData.getExclusiveOwner());
        assertEquals(discussion.isClosed(), discussionData.isClosed());
    }
View Full Code Here

TOP

Related Classes of com.saasovation.collaboration.application.forum.data.DiscussionData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.