http://site.typemock.com/test-lint/
- Microsoft Test Framework
- NUnit
- MbUnit
- XUnit.NET
- CsUnit
http://site.typemock.com/test-lint/
You have two initial options, doing a backup and restore within MOSS to move the data, or doing it at the SQL/STSADM level. I prefer the latter, as it isn't nearly as inclined to fail and leaves you with more flexibility.
1) Find the content Database
These are listed under Central Admin->Application Management->Site Collection List
2) Backup the content database
You could alternatively detach it, and copy it. Just doing a backup in SQL Server 2005 Management studio is easier.
3) Restore content database to new server
Copy the BAK file to new server. Create an empty DB in Management Studio, restore from backup, you may need to change an option in the "options" tab of the restore dialog to get it to work. (Overwrite db).
4) Create Web App on new Server
Central Admin->Application Management->Create or extend Web App->Create New Web App.
5) Associate restored DB with new Web App
Central Admin->Application Management->SharePoint Web Application Management->Content Databases->
Remove Content Database from your new web app.
Now use STSADM to add restored DB to this web app
c:\program files\common files\microsoft shared\web server extentions\12\bin on new server is where you can find the STSADM.
run this command from there.
stsadm -o addcontentdb -url http://yourwebapp:port -databasename yourcontentdb -databaseserver yoursqlserver
6) Run ISSRESET from command prompt.
Caveats:
Instead of user enumeration and check roles for each user, you can get role assignments for web and get all users for corresponding role.
Like this:
using(SPWeb web = SPSite(webUrl).OpenWeb())
{
SPRoleDefinitionCollection roleDefinitions = web.RoleDefinitions;
SPRoleDefinition roleDefinition = roleDefinitions["Full Control"];
foreach (SPRoleAssignment roleAssigment in web.RoleAssignments)
{
if (roleAssigment.RoleDefinitionBindings.Contains(roleDefinition))
{
SPPrincipal oPrincipal = roleAssigment.Member;//it can be SPUser or SPGroup, you can process and add it to the result
}
}
}
http://blog.typemock.com/2010/03/finally-entire-interview-with-uncle-bob.html
What is software craftsmanship all about?
Why TDD is not stupid
Confessions of a TDDer
TDD and unit testing adoption
Really, what's the difference between children and descendants?
MSDN doesn't say about this difference: IncludeDescendants, ExcludeChildren.
But it looks like that IncludeDescendants is more flexible.
Export result shows that:
· ExcludeChildren = true is the same with IncludeDescendants = SPIncludeDescendants.Content.
· ExcludeChildren = false goes to IncludeDescendants = SPIncludeDescendants.All.
SPIncludeDescendants.All –all web content and its sub-containers (like doclibs and lists) with sub-sites is exported
SPIncludeDescendants.Content – only root web content (doclibs, lists) is exported, without sub-sites
SPIncludeDescendants.None – exports only web property and service containers (like galleries). Usual doclibs and lists are not exported. In this mode export result doesn’t contain any custom aspx files from root web folder. /_themes, /images subfolders are excluded from the export also.
SPDeploymentObjectType.List
SPIncludeDescendants.Content, SPIncludeDescendants.All – full list content is exported
SPIncludeDescendants.None – only list properties are exported, no content
ExcludeChildren – doesn’t work for List because it maps to SPIncludeDescendants.Content or SPIncludeDescendants.All, those have the same export result. Note: MSDN says that ExcludeChildren works for List, but I do not see difference between results for ExcludeChildren = true or false. But it works for Folder!
SPDeploymentObjectType.Folder
SPIncludeDescendants.All (or ExcludeChildren = false)– full folder and its sub-folders content is exported
SPIncludeDescendants.Content (or ExcludeChildren = true) and None – only folder properties is exported!