public void User_ApplyPermissions_WithEmail_GrantsAndRevokesPermissions() { SyncTestHelpers.RunRosTestAsync(async() => { var alice = await SyncTestHelpers.GetUserAsync(); var bobEmail = $"{Guid.NewGuid()}@foo.bar"; var bobCredentials = Credentials.UsernamePassword(bobEmail, "a", createUser: true); var bob = await User.LoginAsync(bobCredentials, SyncTestHelpers.AuthServerUri); await TestApplyPermissions(alice, bob, PermissionCondition.Email(bobEmail)).Timeout(20000); }); }
public void User_ApplyPermissions_WithEmail_GrantsAndRevokesPermissions() { AsyncContext.Run(async() => { var alice = await SyncTestHelpers.GetUser(); var bobEmail = $"{Guid.NewGuid()}@foo.bar"; var bobCredentials = Credentials.UsernamePassword(bobEmail, "a", createUser: true); var bob = await User.LoginAsync(bobCredentials, new Uri($"http://{Constants.ServerUrl}")); await TestApplyPermissions(alice, bob, PermissionCondition.Email(bobEmail)); }); }