Examples of discussion()


Examples of com.saasovation.agilepm.domain.model.product.Product.discussion()

        assertEquals(product.tenantId(), savedProduct.tenantId());
        assertEquals(product.productId(), savedProduct.productId());
        assertEquals(product.productOwnerId(), savedProduct.productOwnerId());
        assertEquals("My Product", savedProduct.name());
        assertEquals("My product, which is my product.", savedProduct.description());
        assertEquals(DiscussionAvailability.NOT_REQUESTED, savedProduct.discussion().availability());
    }

    public void testRemove() throws Exception {
        TenantId tenantId = new TenantId("T12345");
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.product.Product.discussion()

        assertEquals(product.tenantId(), savedProduct.tenantId());
        assertEquals(product.productId(), savedProduct.productId());
        assertEquals(product.productOwnerId(), savedProduct.productOwnerId());
        assertEquals("My Product", savedProduct.name());
        assertEquals("My product, which is my product.", savedProduct.description());
        assertEquals(DiscussionAvailability.NOT_REQUESTED, savedProduct.discussion().availability());

        Collection<Product> savedProducts =
                productRepository
                    .allProductsOfTenant(product.tenantId());
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.product.Product.discussion()

                this.productRepository
                    .productOfId(
                            product.tenantId(),
                            product.productId());

        assertEquals(discussionId, productWithInitiatedDiscussion.discussion().descriptor().id());
    }

    public void testNewProduct() throws Exception {
        ProductOwner productOwner = this.persistedProductOwnerForTest();
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.product.Product.discussion()

                            new ProductId(newProductId));

        assertNotNull(newProduct);
        assertEquals("My Product", newProduct.name());
        assertEquals("The description of My Product.", newProduct.description());
        assertEquals(DiscussionAvailability.REQUESTED, newProduct.discussion().availability());
    }

    public void testRequestProductDiscussion() throws Exception {
        Product product = this.persistedProductForTest();
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.product.Product.discussion()

                this.productRepository
                    .productOfId(
                            product.tenantId(),
                            product.productId());

        assertEquals(DiscussionAvailability.REQUESTED, productWithRequestedDiscussion.discussion().availability());
    }

    public void testRetryProductDiscussionRequest() throws Exception {
        Product product = this.persistedProductForTest();
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.product.Product.discussion()

                this.productRepository
                    .productOfId(
                            product.tenantId(),
                            product.productId());

        assertEquals(DiscussionAvailability.REQUESTED, productWithRequestedDiscussion.discussion().availability());

        this.productApplicationService.startDiscussionInitiation(
                new StartDiscussionInitiationCommand(
                        product.tenantId().id(),
                        product.productId().id()));
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.product.Product.discussion()

                this.productRepository
                    .productOfId(
                            product.tenantId(),
                            product.productId());

        assertEquals(DiscussionAvailability.REQUESTED, productWithRetriedRequestedDiscussion.discussion().availability());
    }

    public void testStartDiscussionInitiation() throws Exception {
        Product product = this.persistedProductForTest();
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.product.Product.discussion()

                this.productRepository
                    .productOfId(
                            product.tenantId(),
                            product.productId());

        assertEquals(DiscussionAvailability.REQUESTED, productWithRequestedDiscussion.discussion().availability());

        assertNull(productWithRequestedDiscussion.discussionInitiationId());

        this.productApplicationService.startDiscussionInitiation(
                new StartDiscussionInitiationCommand(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.