public async void TenantId_Update_length()
        {
            Mock <ITenantVariableRepository> tenantVariableRepository = new Mock <ITenantVariableRepository>();

            tenantVariableRepository.Setup(x => x.Get(It.IsAny <string>())).Returns(Task.FromResult(new TenantVariable()));

            var validator = new ApiTenantVariableRequestModelValidator(tenantVariableRepository.Object);
            await validator.ValidateUpdateAsync(default(string), new ApiTenantVariableRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.TenantId, new string('A', 51));
        }
        private async void BeUniqueByTenantIdOwnerIdEnvironmentIdVariableTemplateId_Update_Exists()
        {
            Mock <ITenantVariableRepository> tenantVariableRepository = new Mock <ITenantVariableRepository>();

            tenantVariableRepository.Setup(x => x.ByTenantIdOwnerIdEnvironmentIdVariableTemplateId(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>())).Returns(Task.FromResult <TenantVariable>(new TenantVariable()));
            var validator = new ApiTenantVariableRequestModelValidator(tenantVariableRepository.Object);

            await validator.ValidateUpdateAsync(default(string), new ApiTenantVariableRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.EnvironmentId, "A");
        }