public void ShouldNotThrowIfNoBefaviourSet() { // arrange var stubProvider = new FakeRolesInRolesProvider(); // act & assert stubProvider.AddRolesToRoles(null, null); stubProvider.FindRolesInRole(null, null, false); stubProvider.FindUsersInRole(null, null, false); stubProvider.GetAllRoles(false); stubProvider.GetCreatorOwnerRole(); stubProvider.GetEveryoneRole(); stubProvider.GetEveryoneRoles(); stubProvider.GetGlobalRoles(); stubProvider.GetRoleMembers(null, true); stubProvider.GetRolesForRole(null, true); stubProvider.GetRolesForUser(null, true); stubProvider.GetRolesInRole(null, true); stubProvider.GetSystemRoles(); stubProvider.GetUsersInRole(null, true); stubProvider.IsCreatorOwnerRole(null); stubProvider.IsEveryoneRole("Everyone"); stubProvider.IsEveryoneRole("Everyone", Domain.GetDomain("exranet")); stubProvider.IsGlobalRole(null); stubProvider.IsRoleInRole(null, null, true); stubProvider.IsSystemRole(null); stubProvider.IsUserInRole(null, null, true); stubProvider.RemoveRoleRelations(null); stubProvider.RemoveRolesFromRoles(null, null); }
public void ShouldNotThrowIfNoBefaviourSet() { // arrange var stubProvider = new FakeRolesInRolesProvider(); // act & assert stubProvider.AddRolesToRoles(null, null); stubProvider.FindRolesInRole(null, null, false); stubProvider.FindUsersInRole(null, null, false); stubProvider.GetAllRoles(false); stubProvider.GetCreatorOwnerRole(); stubProvider.GetEveryoneRole(); stubProvider.GetEveryoneRoles(); stubProvider.GetGlobalRoles(); stubProvider.GetRoleMembers(null, true); stubProvider.GetRolesForRole(null, true); stubProvider.GetRolesForUser(null, true); stubProvider.GetRolesInRole(null, true); stubProvider.GetSystemRoles(); stubProvider.GetUsersInRole(null, true); stubProvider.IsCreatorOwnerRole(null); stubProvider.IsEveryoneRole("Everyone"); stubProvider.IsEveryoneRole("Everyone", Domain.GetDomain("exranet")); stubProvider.IsGlobalRole(null); stubProvider.IsRoleInRole(null, null, true); stubProvider.IsSystemRole(null); stubProvider.IsUserInRole(null, null, true); stubProvider.RemoveRoleRelations(null); stubProvider.RemoveRolesFromRoles(null, null); }