예제 #1
0
        public void ManagerTerminal_MainAccountProcedure()
        {
            InputController.EnableMock();

            ManagerTerminal managerTerminal = new ManagerTerminal(true);

            managerTerminal._RunUpdateDelegateOnce(OperatorTerminal.TerminalState.MAIN_ACCOUNTING_PROCEDURE);

            InputController.DisableMock();
        }
예제 #2
0
        public void ManagerTerminal_CustomProviderReport()
        {
            InputController.EnableMock();
            InputController.AddMockInput("100000001");

            ManagerTerminal managerTerminal = new ManagerTerminal(true);

            managerTerminal._RunUpdateDelegateOnce(OperatorTerminal.TerminalState.CUSTOM_PROVIDER_REPORT);

            InputController.DisableMock();
        }
예제 #3
0
        public void ManagerTerminal_RemoveProviderUpdate()
        {
            InputController.EnableMock();
            InputController.AddMockInput("123456780");

            ManagerTerminal managerTerminal = new ManagerTerminal(true);

            managerTerminal._RunUpdateDelegateOnce(OperatorTerminal.TerminalState.REMOVE_PROVIDER);

            InputController.DisableMock();
        }
예제 #4
0
        public void ManagerTerminal_AddServiceCodeUpdate()
        {
            InputController.EnableMock();
            InputController.AddMockInput(SampleCode);
            InputController.AddMockInput(SampleID);
            InputController.AddMockInput(SampleName);
            InputController.AddMockInput(SampleFee);

            ManagerTerminal managerTerminal = new ManagerTerminal(true);

            managerTerminal._RunUpdateDelegateOnce(OperatorTerminal.TerminalState.ADD_SERVICE_CODE);

            InputController.DisableMock();
        }
예제 #5
0
        public void ManagerTerminal_AddServiceRecord()
        {
            InputController.EnableMock();
            InputController.AddMockInput(SampleDate);
            InputController.AddMockInput(SampleID);
            InputController.AddMockInput(SampleCode);
            InputController.AddMockInput("comments");

            ManagerTerminal managerTerminal = new ManagerTerminal(true);

            managerTerminal._RunUpdateDelegateOnce(OperatorTerminal.TerminalState.ADD_SERVICE_RECORD);

            InputController.DisableMock();
        }
예제 #6
0
        public void ManagerTerminal_AddMemberUpdate()
        {
            InputController.EnableMock();
            InputController.AddMockInput(SampleID);
            InputController.AddMockInput("N");
            InputController.AddMockInput(SampleName);
            InputController.AddMockInput(SampleAddress);
            InputController.AddMockInput(SampleCity);
            InputController.AddMockInput(SampleState);
            InputController.AddMockInput(SampleZip);
            InputController.AddMockInput(SampleEmail);

            ManagerTerminal managerTerminal = new ManagerTerminal(true);

            managerTerminal._RunUpdateDelegateOnce(OperatorTerminal.TerminalState.ADD_MEMBER);

            InputController.DisableMock();
        }
예제 #7
0
        public void ManagerTerminal_UpdateProviderUpdate()
        {
            InputController.EnableMock();
            InputController.AddMockInput(SampleID);
            InputController.AddMockInput("N");
            InputController.AddMockInput(SampleName);
            InputController.AddMockInput(SampleAddress);
            InputController.AddMockInput(SampleCity);
            InputController.AddMockInput(SampleState);
            InputController.AddMockInput(SampleZip);
            InputController.AddMockInput(SampleEmail);
            InputController.AddMockInput(SamplePassword);

            ManagerTerminal managerTerminal = new ManagerTerminal(true);

            managerTerminal._RunUpdateDelegateOnce(OperatorTerminal.TerminalState.UPDATE_PROVIDER);

            InputController.DisableMock();
        }
예제 #8
0
        public void ManagerTerminal_MenuUpdateFunction()
        {
            for (int i = 0; i <= 26; i++)
            {
                char input = Convert.ToChar(97 + i);
                if (i == 26)
                {
                    input = '9';
                }

                InputController.EnableMock();
                InputController.AddMockInput(input.ToString());

                ManagerTerminal managerTerminal = new ManagerTerminal(true);
                managerTerminal._RunUpdateDelegateOnce(OperatorTerminal.TerminalState.MENU);

                InputController.DisableMock();
            }
        }