示例#1
0
        public static GeneralLedger Open(DateTimeOffset openedOn)
        {
            var generalLedger = new GeneralLedger();

            generalLedger.Apply(new GeneralLedgerOpened {
                OpenedOn = openedOn
            });
            return(generalLedger);
        }
示例#2
0
        public static GeneralLedger Open(LocalDate openedOn)
        {
            var generalLedger = new GeneralLedger();

            generalLedger.Apply(new GeneralLedgerOpened {
                OpenedOn = Time.Format.LocalDate(openedOn),
            });
            return(generalLedger);
        }