The core infrastructure backend (API, database, Docker, etc).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
676 B

using Bit.Core.AdminConsole.Models.OrganizationConnectionConfigs;
using Xunit;
namespace Bit.Core.Test.Models.OrganizationConnectionConfigs;
public class ScimConfigTests
{
[Fact]
public void ScimConfig_CanUse_Success()
{
var config = new ScimConfig() { Enabled = true };
Assert.True(config.Validate(out var exception));
Assert.True(string.IsNullOrEmpty(exception));
}
[Fact]
public void ScimConfig_CanUse_WhenDisabled_ReturnsFalse()
{
var config = new ScimConfig() { Enabled = false };
Assert.False(config.Validate(out var exception));
Assert.Contains("Config is disabled", exception);
}
}