示例#1
0
 public 書籍 Create(string _id, string _title, string _isbn)
 => new 書籍(書籍のID.Create(_id), ISBN.Create(_isbn))
 {
     タイトル = タイトル.Create(_title)
 };
示例#2
0
        public async Task 初期値入力()
        {
            await CommandBus.ExecuteAsync(利用者を登録するCommand.Create("田中", "太郎"));

            await CommandBus.ExecuteAsync(利用者を登録するCommand.Create("山田", "花子"));

            var prop = MessageBroker.ToObservable <I本が登録されたEvent>().ToReadOnlyReactivePropertySlim(null);

            await CommandBus.ExecuteAsync(本を登録するCommand.Create(タイトル.Create(".NETのエンタープライズアプリケーションアーキテクチャ 第2版"), ISBN.Create("9784822298487")));

            if (prop.Value == null)
            {
                await prop;
            }

            await CommandBus.ExecuteAsync(本を登録する2Command.Create(prop.Value.書籍のID));
        }