public void CreateRequestIsMade_InvalidCustomerId_ValidationShouldFail()
        {
            var validatorService = new PasswordValidator(CreateDefaultValidationRules());
            var request          = new CredentialsCreateRequest
            {
                CustomerId = "",
                Login      = "******",
                Password   = "******"
            };

            var validator = new CreateRequestCredentialsValidator(validatorService);
            var result    = validator.Validate(request);

            Assert.False(result.IsValid);
        }
        public void CreateRequestIsMade_CorrectCredentials_ValidationPassSuccessfully()
        {
            var validatorService = new PasswordValidator(CreateDefaultValidationRules());
            var request          = new CredentialsCreateRequest
            {
                CustomerId = "mockId",
                Login      = "******",
                Password   = "******"
            };

            var validator = new CreateRequestCredentialsValidator(validatorService);
            var result    = validator.Validate(request);

            Assert.True(result.IsValid);
        }