public void SubmitSlugsHaveAllProperties_IsNotValid_WhenUrlIsEmpty()
        {
            // Arrange
            var submitSlugs = new SubmitSlug
            {
                AuthToken   = "this is auth token",
                URL         = "",
                Environment = "local",
            };

            var behaviours = new List <Behaviour>
            {
                new BehaviourBuilder()
                .WithBehaviourType(EBehaviourType.SubmitForm)
                .WithSubmitSlug(submitSlugs)
                .Build()
            };

            // Act
            var check  = new SubmitSlugsHaveAllPropertiesCheck(_mockHostingEnv.Object);
            var result = check.Validate(behaviours);

            // Assert
            Assert.False(result.IsValid);
            Assert.Collection <string>(result.Messages, message => Assert.StartsWith(IntegrityChecksConstants.FAILURE, message));
        }
        public void CheckSubmitSlugsHaveAllProperties_IsValid_WhenAuthTokenAndUrlAreNotNullOrEmpty()
        {
            // Arrange
            var submitSlugs = new SubmitSlug
            {
                AuthToken = "this is auth token",
                URL       = "test"
            };

            var behaviours = new List <Behaviour>
            {
                new BehaviourBuilder()
                .WithBehaviourType(EBehaviourType.SubmitForm)
                .WithSubmitSlug(submitSlugs)
                .Build()
            };

            // Act
            var check  = new SubmitSlugsHaveAllPropertiesCheck(_mockHostingEnv.Object);
            var result = check.Validate(behaviours);

            // Assert
            Assert.True(result.IsValid);
        }