コード例 #1
0
        private static void CreateDeal(AssetType assetType)
        {
            var factory = FinancialFactory.GetFactory(assetType);
            var deal    = factory.CreateDeal();

            PrintAggregateDetails(deal);
        }
コード例 #2
0
        private static void CreateOrder(AssetType assetType)
        {
            var factory = FinancialFactory.GetFactory(assetType);
            var order   = factory.CreateOrder();

            PrintAggregateDetails(order);
        }