Exemple #1
0
        public void Sucess_Process()
        {
            IntializeMoq();
            var response = handleSellOrder.Execute();

            RobotResponseAnalize.Succesfull(response);
        }
Exemple #2
0
        public void Failure_Process_For_ReadLines()
        {
            successReadLines = false;
            IntializeMoq();
            var response = handleSellOrder.Execute();

            RobotResponseAnalize.FailureThecnical(response);
        }
Exemple #3
0
        public void Sucess_Process_For_Empty_Files()
        {
            emptyGetFiles = true;
            IntializeMoq();
            var response = handleSellOrder.Execute();

            RobotResponseAnalize.Succesfull(response);
        }
Exemple #4
0
        public void Sucess_Process_With_Execution_Business_Error()
        {
            successExecutionSellOrder = false;
            IntializeMoq();
            var response = handleSellOrder.Execute();

            RobotResponseAnalize.Succesfull(response);
        }
Exemple #5
0
        public void Failure_Process_For_Deserialize_Order_List()
        {
            successDeserializeOrderList = false;
            IntializeMoq();
            var response = handleSellOrder.Execute();

            RobotResponseAnalize.FailureThecnical(response);
        }
Exemple #6
0
        public void Failure_Process_For_Deserialize_Initial_Balance()
        {
            successDeserializeInitialBalance = false;
            IntializeMoq();
            var response = handleSellOrder.Execute();

            RobotResponseAnalize.FailureThecnical(response);
        }
Exemple #7
0
        public void Failure_Process_For_Empty_File_Lines()
        {
            emptyReadLines = true;
            IntializeMoq();
            var response = handleSellOrder.Execute();

            RobotResponseAnalize.FailureUser(response);
        }
Exemple #8
0
        public void Failure_Process_For_Incorrect_File_Lines()
        {
            IntializeMoq();
            fileManager.Setup(x => x.ReadLines(It.IsAny <string>()))
            .Returns(
                BuildOperationResultForTest <string> .OperationGetList
                    (SettingToHandle.InitializeIncorrectReadLines, emptyReadLines, successReadLines));
            var response = handleSellOrder.Execute();

            RobotResponseAnalize.FailureUser(response);
        }