public void CanAssignNotCompletedMessage() { var value = "Not completed."; var model = new ReCoreOptions { NotCompletedMessage = value }; Assert.Equal(value, model.NotCompletedMessage); }
public void CanAssignVerificationFailedMessage() { var value = "Verification failed."; var model = new ReCoreOptions { VerificationFailedMessage = value }; Assert.Equal(value, model.VerificationFailedMessage); }
public void CanAssignSecretKey() { var value = "12345"; var model = new ReCoreOptions { SecretKey = value }; Assert.Equal(value, model.SecretKey); }
public ReCaptchaService(IHttpService httpService, ReCoreOptions opts) { _httpService = httpService ?? throw new ArgumentNullException(nameof(httpService)); _opts = opts ?? throw new ArgumentNullException(nameof(opts)); }
public void HasDefaultVerificationFailedMessage() { var model = new ReCoreOptions(); Assert.Equal(Strings.VERIFICATION_FAILED_DEFAULT_MESSAGE, model.VerificationFailedMessage); }
public void HasDefaultNotCompletedMessage() { var model = new ReCoreOptions(); Assert.Equal(Strings.NOT_COMPLETED_DEFAULT_MESSAGE, model.NotCompletedMessage); }