public void It_can_get_and_set_ForeignSecurityPrincipalSet()
        {
            // Act
            var testSet = new Set { DisplayName = "Test Set" };
            _it.ForeignSecurityPrincipalSet = testSet;

            // Assert
            Assert.AreEqual(testSet.DisplayName, _it.ForeignSecurityPrincipalSet.DisplayName);
        }
        public void It_can_get_and_set_ContactSet()
        {
            // Act
            var testSet = new Set { DisplayName = "Test Set" };
            _it.ContactSet = testSet;

            // Assert
            Assert.AreEqual(testSet.DisplayName, _it.ContactSet.DisplayName);
        }
        public void It_has_ForeignSecurityPrincipalSet_which_can_be_set_back_to_null()
        {
            // Arrange
            var testSet = new Set { DisplayName = "Test Set" };
            _it.ForeignSecurityPrincipalSet = testSet;

            // Act
            _it.ForeignSecurityPrincipalSet = null;

            // Assert
            Assert.IsNull(_it.ForeignSecurityPrincipalSet);
        }
Exemplo n.º 4
0
        public void It_has_a_constructor_that_takes_an_IdmResource()
        {
            var resource = new IdmResource
            {
                DisplayName = "My Display Name",
                Creator = new Person { DisplayName = "Creator Display Name", ObjectID = "Creator ObjectID"},
            };
            var it = new Set(resource);

            Assert.AreEqual("Set", it.ObjectType);
            Assert.AreEqual("My Display Name", it.DisplayName);
            Assert.AreEqual("Creator Display Name", it.Creator.DisplayName);
        }
Exemplo n.º 5
0
 public SetTests()
 {
     _it = new Set();
 }
Exemplo n.º 6
0
        public void It_has_a_constructor_that_takes_an_IdmResource_without_Creator()
        {
            var resource = new IdmResource
            {
                DisplayName = "My Display Name",
            };
            var it = new Set(resource);

            Assert.AreEqual("My Display Name", it.DisplayName);
            Assert.IsNull(it.Creator);
        }
        public void It_has_ResourceFinalSet_which_can_be_set_back_to_null()
        {
            // Arrange
            var testSet = new Set { DisplayName = "Test Set" };
            _it.ResourceFinalSet = testSet;

            // Act
            _it.ResourceFinalSet = null;

            // Assert
            Assert.IsNull(_it.ResourceFinalSet);
        }
        public void It_can_get_and_set_ResourceFinalSet()
        {
            // Act
            var testSet = new Set { DisplayName = "Test Set" };
            _it.ResourceFinalSet = testSet;

            // Assert
            Assert.AreEqual(testSet.DisplayName, _it.ResourceFinalSet.DisplayName);
        }