public void ShouldAddSFMember()
{
var sharedFolder = Client.CreateSharedFolder("SharedFolder");
var testEmail = "[email protected]";
var firstName = "Test";
var lastName = "User";
var user = OrgAdminClient.CreateUser(testEmail, firstName, lastName);
var permissions = new Permission[] { Permission.Write };
var sfMember = OrgAdminClient.AddSFMemberToSharedFolder(sharedFolder.ID, user.Email, permissions);
OrgAdminClient.DeleteUser(testEmail);
Assert.AreEqual(user.Email, sfMember.Email);
Assert.AreEqual("Test", sfMember.FirstName);
Assert.AreEqual("User", sfMember.LastName);
Assert.IsTrue(permissions.SequenceEqual(sfMember.Permissions));
}