1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-16 20:51:23 +01:00
bitwarden-server/test/Core.Test/Models/OrganizationConnectionConfigs/ScimConfigTests.cs
Thomas Rittson 82908b1fb7
[EC-826] Merge license sync feature branch to master (#2587)
* [EC-634] Extract GenerateLicenseAsync to a query (#2373)

* [EC-637] Add license sync to server (#2453)

* [EC-1036] Show correct license sync date (#2626)

* Update method name per new pattern
2023-01-31 07:42:10 +10:00

24 lines
663 B
C#

using Bit.Core.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);
}
}