Example #1
0
 public FormDiagrams(ControllerDiagrams service, ControllerValidation validation, ControllerPrinting serviceP)
 {
     InitializeComponent();
     this.service    = service;
     this.serviceP   = serviceP;
     this.validation = validation;
 }
Example #2
0
 public FormListClients(ControllerClient service, ControllerSelection serviceR, ControllerService serviceS, ControllerValidation serviceV)
 {
     InitializeComponent();
     this.service  = service;
     this.serviceR = serviceR;
     this.serviceS = serviceS;
     this.serviceV = serviceV;
 }
Example #3
0
 public FormReports(ControllerReporting serviceR, ContractAgent serviceCA, ControllerPrinting serviceP, ControllerValidation validation)
 {
     InitializeComponent();
     this.serviceR   = serviceR;
     this.serviceCA  = serviceCA;
     this.serviceP   = serviceP;
     this.validation = validation;
 }
Example #4
0
        public IActionResult Get(string message, string spyName)
        {
            if (!ControllerValidation.Parse(message, spyName))
            {
                return(StatusCode(400, "Bad Data: message and spyname must be populated."));
            }

            var response = _cipherService.Decode(message, spyName);

            return(StatusCode(response.StatusCode, response.Message));
        }
 public FormFillingContracts(ControllerDirection serviceD, ControllerClient serviceC, ControllerContractClient serviceCC,
                             ContractAgent serviceCA, ControllerService serviceS, ControllerPrinting serviceP, ControllerValidation validation)
 {
     InitializeComponent();
     this.serviceD   = serviceD;
     this.serviceCC  = serviceCC;
     this.serviceC   = serviceC;
     this.serviceS   = serviceS;
     this.serviceCA  = serviceCA;
     this.validation = validation;
     this.serviceP   = serviceP;
 }
Example #6
0
        public void Should_return_false_when_null_string_is_passed_to_message(string message, string spyName)
        {
            var result = ControllerValidation.Parse(message, spyName);

            result.ShouldBeFalse();
        }
Example #7
0
 public FormListContracts(ControllerContractClient service, ControllerValidation validation)
 {
     InitializeComponent();
     this.service    = service;
     this.validation = validation;
 }