Add branded default provider and enforced enrollment
This commit is contained in:
1 parent
da01343985
commit
f3afd62993
22 files changed
+787
-17
No files matched your search
@@ -31,4 +31,20 @@ public sealed class ProviderTileIconTests
|
||||
|
||||
Assert.InRange(lightPixels, 200, 2_000);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ProviderPublishesABrandedDedicatedUserTileAndHeading()
|
||||
{
|
||||
SguCredentialProvider provider = new();
|
||||
ControlBase[] controls = provider.GetControls(UsageScenario.Logon).ToArray();
|
||||
|
||||
UserTileControl userTile = Assert.Single(controls.OfType<UserTileControl>());
|
||||
LargeLabelControl heading = Assert.Single(controls.OfType<LargeLabelControl>());
|
||||
SguCredentialTile tile = Assert.IsType<SguCredentialTile>(provider.CreateGenericTile());
|
||||
|
||||
Assert.Equal(ProviderTileIcon.UserTileSize, userTile.Bitmap.Width);
|
||||
Assert.Equal(ProviderTileIcon.UserTileSize, userTile.Bitmap.Height);
|
||||
Assert.Equal("Acceso institucional SGU", heading.Label);
|
||||
Assert.Equal(GenericTileDisplayMode.DisplayAsDedicatedTile, tile.GenericTileDisplayMode);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user