Пример #1
0
        static void Main(string[] args)
        {
            IDataService DataService;
            CharacterBLL CharacterBLL;
            Presenter    presenter;

            DataService  = new CsvDataService(@"Data/Data.csv");
            CharacterBLL = new CharacterBLL(DataService);
            presenter    = new Presenter(CharacterBLL);

            DataService  = new XmlDataService(@"Data/Data.xml");
            CharacterBLL = new CharacterBLL(DataService);
            presenter    = new Presenter(CharacterBLL);

            DataService  = new JsonDataService();
            CharacterBLL = new CharacterBLL(DataService);
            presenter    = new Presenter(CharacterBLL);
        }
Пример #2
0
        static void Main(string[] args)
        {
            IDataService dataService;
            CharacterBLL characterBLL;
            Presenter    presenter;

            // Run CSV Serializer
            dataService  = new CsvDataService();
            characterBLL = new CharacterBLL(dataService);
            presenter    = new Presenter(characterBLL);

            // Run XML Serializer
            dataService  = new XmlDataService();
            characterBLL = new CharacterBLL(dataService);
            presenter    = new Presenter(characterBLL);

            // Run JSON Serializer
            dataService  = new JsonDataService();
            characterBLL = new CharacterBLL(dataService);
            presenter    = new Presenter(characterBLL);
        }
Пример #3
0
 static void Main(string[] args)
 {
     IDataService dataService  = new CsvDataService();
     CharacterBLL characterBLL = new CharacterBLL(dataService);
     Presenter    presenter    = new Presenter(characterBLL);
 }