Example #1
0
        // Enum 分ける
        // 予約開始_時分 と 予約終了_時分? ==> 元の予約期間みたいに年月日+開始終了の時分
        //


        public 予約終了日時(予約年月日 年月日, 予約終了_時 時, 予約_分 分)
        {
            this.年月日 = 年月日;
            this.時   = 時;
            this.分   = 分;

            if (時間が予約範囲外である())
            {
                throw new ドメインエラーException(new ArgumentOutOfRangeException($"Over: {時}, {分}"));
            }
        }
Example #2
0
        // Enum 分ける
        // 予約開始_時分 と 予約終了_時分? ==> 元の予約期間みたいに年月日+開始終了の時分
        //


        public 予約開始日時(予約年月日 年月日, 予約開始_時 時, 予約_分 分)
        {
            this.年月日 = 年月日;
            this.時   = 時;
            this.分   = 分;
        }