/*
 * This File is one of the examples from Java Object Oriented Programming
 * Do not reproduce this code for others or use it in a commercial setting without prior permission from the author.
 */
package salesApplication;

import DataSource.InMemoryDataSource;
import applicationIO.FileOutput;

/**
 *
 * @author Matthew Gregory
 * @website www.matthewgregory-author.com.au
 *
 */
public class TestPriceList {
    public static void main(String[] args) {
        PriceList demo = (new InMemoryDataSource()).retrieveList("Demo");
        demo.setPrintDest(new FileOutput("Demo price list.rtf"));
        demo.printList(); 
//        DataSource ds = new FileDataSource();
//        PriceList demo = ds.retrieveList("Demo");
//        ds.saveList("Writing Implements",demo.filterList(i-> i instanceof WritingImplement));
//        ds.getListNames();
    }
}
