public void SettingsMapper_when_mapping_AutoRefreshAfter() { var clientSettings = new ServiceSettings { AutoRefreshAfter = TimeSpan.FromMinutes(new Random().Next(0, 1000)) }; var auth0Settings = clientSettings.ToAuth0ClientSettings(); clientSettings.AutoRefreshAfter.Should().Be(auth0Settings.AutoRefreshAfter); }
public void SettingsMapper_when_mapping_RefreshToken() { var clientSettings = new ServiceSettings { Auth0ClientId = "auth0ClientId", Auth0RefreshToken = "auth0RefreshToken" }; var auth0Settings = clientSettings.ToAuth0ClientSettings(); clientSettings.Auth0ClientId.Should().Be(auth0Settings.Auth0ClientId); clientSettings.Auth0RefreshToken.Should().Be(auth0Settings.Auth0RefreshToken); }
public void SettingsMapper_when_mapping_UsernamePassword() { var clientSettings = new ServiceSettings { Auth0ClientId = "auth0ClientId", Auth0Password = "******", Auth0User = "******" }; var auth0Settings = clientSettings.ToAuth0ClientSettings(); clientSettings.Auth0ClientId.Should().Be(auth0Settings.Auth0ClientId); clientSettings.Auth0Password.Should().Be(auth0Settings.Auth0Password); clientSettings.Auth0User.Should().Be(auth0Settings.Auth0Username); }