public void RequestProductDiscussion(RequestProductDiscussionCommand command)
        {
            var product = this.productRepository.Get(new TenantId(command.TenantId), new ProductId(command.ProductId));
            if (product == null)
                throw new InvalidOperationException(
                    string.Format("Unknown product of tenant id: {0} and product id: {1}.", command.TenantId, command.ProductId));

            RequestProductDiscussionFor(product);
        }
示例#2
0
        public void RequestProductDiscussion(RequestProductDiscussionCommand command)
        {
            var product = this.productRepository.Get(new TenantId(command.TenantId), new ProductId(command.ProductId));

            if (product == null)
            {
                throw new InvalidOperationException(
                          string.Format("Unknown product of tenant id: {0} and product id: {1}.", command.TenantId, command.ProductId));
            }

            RequestProductDiscussionFor(product);
        }