public void ValidDigitalOceanAccount()
        {
            DigitalOceanAccount account = new DigitalOceanAccount
            {
                Domains = new[]
                {
                    ValidDigitalOceanDomain()
                },
                Token = "QSA5VXQSWMH3L8MYX2XF"
            };

            IValidator <DigitalOceanAccount> validator = new DigitalOceanAccountValidator();
            ValidationResult validationResult          = validator.Validate(account);

            Assert.True(validationResult.IsValid);
        }
        public void InvalidDigitalOceanAccount()
        {
            DigitalOceanAccount account = new DigitalOceanAccount
            {
                Domains = new[]
                {
                    ValidDigitalOceanDomain()
                },
                Token = string.Empty
            };

            IValidator <DigitalOceanAccount> validator = new DigitalOceanAccountValidator();
            ValidationResult validationResult          = validator.Validate(account);

            Assert.False(validationResult.IsValid);
            Assert.True(validationResult.Errors.All(m => m.ErrorMessage.Equals(DigitalOceanAccountValidator.TokenErrorMessage)));
        }