public static GeneralLedger Open(DateTimeOffset openedOn) { var generalLedger = new GeneralLedger(); generalLedger.Apply(new GeneralLedgerOpened { OpenedOn = openedOn }); return(generalLedger); }
public static GeneralLedger Open(LocalDate openedOn) { var generalLedger = new GeneralLedger(); generalLedger.Apply(new GeneralLedgerOpened { OpenedOn = Time.Format.LocalDate(openedOn), }); return(generalLedger); }