public void It_can_get_and_set_SynchronizationRuleID()
        {
            // Act
            var testSynchronizationRule = new SynchronizationRule { DisplayName = "Test SynchronizationRule" };
            _it.SynchronizationRuleID = testSynchronizationRule;

            // Assert
            Assert.AreEqual(testSynchronizationRule.DisplayName, _it.SynchronizationRuleID.DisplayName);
        }
        public void It_has_SynchronizationRuleID_which_can_be_set_back_to_null()
        {
            // Arrange
            var testSynchronizationRule = new SynchronizationRule { DisplayName = "Test SynchronizationRule" };
            _it.SynchronizationRuleID = testSynchronizationRule;

            // Act
            _it.SynchronizationRuleID = null;

            // Assert
            Assert.IsNull(_it.SynchronizationRuleID);
        }
        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 SynchronizationRule(resource);

            Assert.AreEqual("SynchronizationRule", it.ObjectType);
            Assert.AreEqual("My Display Name", it.DisplayName);
            Assert.AreEqual("Creator Display Name", it.Creator.DisplayName);
        }
        public void It_has_a_constructor_that_takes_an_IdmResource_without_Creator()
        {
            var resource = new IdmResource
            {
                DisplayName = "My Display Name",
            };
            var it = new SynchronizationRule(resource);

            Assert.AreEqual("My Display Name", it.DisplayName);
            Assert.IsNull(it.Creator);
        }
 public SynchronizationRuleTests()
 {
     _it = new SynchronizationRule();
 }