static void Main(string[] args) { // FacadeUpStreamOrder facade = new FacadeUpStreamOrder(); // IOrderAdapter adapter = new JsonOrderAdapter(facade); // Order[] orders = new OrderService(adapter).ProcessOrders(); var facade = new FacadeUpStreamTypedOrder(); ITypedOrderAdapter adapter = new JsonTypedOrderAdapter(facade); TypedOrder[] orders = new TypedOrderService(adapter).ProcessOrders(); }
public void GetOrder_WhenCalled() { var sut = new FacadeUpStreamTypedOrder(); var actual = sut.GetOrder(); }
public JsonTypedOrderAdapter(FacadeUpStreamTypedOrder facade) { this.facade = facade; }