28 lines
727 B
C#
28 lines
727 B
C#
using Pannenkoekenhuis.Factory;
|
|
using Strategy_Kassabon;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Pannenkoekenhuis
|
|
{
|
|
class TestFactory
|
|
{
|
|
public static void TestFactory1()
|
|
{
|
|
PannenkoekenFactory factory = new KaasPannenkoekFactory();
|
|
Pannenkoek kaaspannenkoek = factory.BestelPannenkoek();
|
|
|
|
factory = new StroopPannenkoekFactory();
|
|
Pannenkoek strooppannenkoek = factory.BestelPannenkoek();
|
|
|
|
Console.WriteLine(kaaspannenkoek.Beschrijving);
|
|
Console.WriteLine(strooppannenkoek.Beschrijving);
|
|
|
|
}
|
|
|
|
}
|
|
}
|