AeroFSSDK.Tests.TestSharedFolders.ShouldAddSFMember C# (CSharp) 메소드

ShouldAddSFMember() 개인적인 메소드

private ShouldAddSFMember ( ) : void
리턴 void
        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));
        }