Ejemplo n.º 1
0
        public void Sucess_Process()
        {
            IntializeMoq();
            var response = handleSellOrder.Execute();

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

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

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

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

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

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

            RobotResponseAnalize.FailureUser(response);
        }
Ejemplo n.º 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);
        }