Exemplo n.º 1
0
        public static GeneralLedger Open(DateTimeOffset openedOn)
        {
            var generalLedger = new GeneralLedger();

            generalLedger.Apply(new GeneralLedgerOpened {
                OpenedOn = openedOn
            });
            return(generalLedger);
        }
Exemplo n.º 2
0
        public static GeneralLedger Open(LocalDate openedOn)
        {
            var generalLedger = new GeneralLedger();

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