Exemplo n.º 1
0
        public IOGateWayTestCase(IOgateWay iIO, TestCaseIGUI iGUI)
        {
            _iIO  = iIO;
            _iGUI = iGUI;

            _iGUI.beginTesting("IOGateWay");
            _iGUI.attachResult(getFileInFolderNonRecursiveIoTest());
            _iGUI.attachResult(getByteFromFileIOTest());
            _iGUI.endTesting();
        }
Exemplo n.º 2
0
        public InteractorTestCase(IOgateWay io, TestCaseIGUI igui)
        {
            _interactor = new Interactor(io);
            _iGUI       = igui;

            _iGUI.beginTesting("Interactor");
            _iGUI.attachResult(getAllFilesInFolderTest());
            _iGUI.attachResult(createFileModelsFromNamesTest());

            _iGUI.endTesting();
        }
Exemplo n.º 3
0
 public Interactor(IOgateWay gate, OutPutBoudary outbound, IHistory iHis)
 {
     this.IGateWay      = gate;
     this.OutPutBoudary = outbound;
     this.IHistory      = iHis;
 }
Exemplo n.º 4
0
 public Interactor(IOgateWay gate, OutPutBoudary outbound)
 {
     this.IGateWay      = gate;
     this.OutPutBoudary = outbound;
 }
Exemplo n.º 5
0
 public Interactor(IOgateWay gate)
 {
     this.IGateWay = gate;
 }
Exemplo n.º 6
0
        static void Main()
        {
            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new GUI());



            //Form gui = new TestCaseGUI();


            //TestCaseIGUI igui = (TestCaseIGUI)gui;
            //HardDriveTestCase hdTest = new HardDriveTestCase(igui);
            //HardDriveDataMapperTestCase hddmTest = new HardDriveDataMapperTestCase(igui);

            //IOgateWay io = new HardDriveDataMapper();
            //IOGateWayTestCase ioTest = new IOGateWayTestCase(io, igui);


            //IOgateWay io2 = new HardDriveDataMapper();
            //InteractorTestCase interTest = new InteractorTestCase(io2, igui);

            //FileModelTestCase fileTest = new FileModelTestCase(igui);

            //igui.attachResult(TrID.TrIDEngine.GetExtensionByFileContent("C:\\TestDir\\0ac62dc26de49c05241fa8f63432babb"));



            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            HardDriveDataMapper hddm = new HardDriveDataMapper();
            IOgateWay           io   = (IOgateWay)hddm;

            HDHistoryDataMapper hdhdm = new HDHistoryDataMapper();
            IHistory            ihis  = (IHistory)hdhdm;

            ViewModel     viewModel     = new ViewModel();
            Presenter     presenter     = new Presenter(viewModel);
            OutPutBoudary outPutBoudary = (OutPutBoudary)presenter;

            Interactor interactor = new Interactor(io, outPutBoudary, ihis);

            InputBoundary inputBoundary = (InputBoundary)interactor;

            Controller  ctrl  = new Controller(inputBoundary);
            IController ictrl = (IController)ctrl;

            Form gui = new GUI(ictrl, viewModel);

            interactor.LoadHistory();

            Application.Run(gui);

            //Coordinate point = new Coordinate();

            //point.CoordinatesChanged += StructEventHandler;
            //point.x = 10;
            //point.y = 20;
        }