コード例 #1
0
        public async Task <IStatement> CreateStatement(StatementTitle statementTitle)
        {
            var statement = statementFactory.NewStatement(statementTitle);

            statement.ChangeStatus(
                this.statementFactory,
                StatusCode.Opened,
                new StatusComment(" "));

            await statementRepository.AddStatement(statement);

            await statementRepository.Update(statement, statement.CurrentStatus);

            await unitOfWork.Save();

            return(statement);
        }