public void PublishRabbitMqActivityComparer_IsDurable_Different_Object_Is_Not_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId         = Guid.NewGuid().ToString();
            var rabbitMqActivity = new PublishRabbitMQActivity()
            {
                UniqueID = uniqueId, Result = "A",
            };
            var rabbitMqActivity1 = new PublishRabbitMQActivity()
            {
                UniqueID = uniqueId, Result = "A"
            };

            //---------------Assert Precondition----------------
            Assert.IsTrue(rabbitMqActivity.Equals(rabbitMqActivity1));
            //---------------Execute Test ----------------------
            rabbitMqActivity.IsDurable  = true;
            rabbitMqActivity1.IsDurable = false;
            var @equals = rabbitMqActivity.Equals(rabbitMqActivity1);

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void PublishRabbitMqActivityComparer_Equals_Given_Same_Object_Is_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId         = Guid.NewGuid().ToString();
            var rabbitMqActivity = new PublishRabbitMQActivity()
            {
                UniqueID = uniqueId, Result = "A"
            };
            var rabbitMqActivity1 = new PublishRabbitMQActivity()
            {
                UniqueID = uniqueId, Result = "A"
            };

            //---------------Assert Precondition----------------
            Assert.IsTrue(rabbitMqActivity.Equals(rabbitMqActivity1));
            //---------------Execute Test ----------------------
            rabbitMqActivity.DisplayName  = "2";
            rabbitMqActivity1.DisplayName = "2";
            var @equals = rabbitMqActivity.Equals(rabbitMqActivity1);

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        public void PublishRabbitMqActivityComparer_UniqueIDDifferent_EmptyPublishRabbitMQ_Is_Not_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId          = Guid.NewGuid().ToString();
            var rabbitMqActivity  = new PublishRabbitMQActivity();
            var rabbitMqActivity1 = new PublishRabbitMQActivity();

            //---------------Assert Precondition----------------
            Assert.IsNotNull(rabbitMqActivity);
            //---------------Execute Test ----------------------
            var @equals = rabbitMqActivity.Equals(rabbitMqActivity1);

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void PublishRabbitMqActivityComparer_Result_Different_Object_Is_Not_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId    = Guid.NewGuid().ToString();
            var multiAssign = new PublishRabbitMQActivity()
            {
                UniqueID = uniqueId, Result = ""
            };
            var multiAssign1 = new PublishRabbitMQActivity()
            {
                UniqueID = uniqueId, Result = "a"
            };

            //---------------Assert Precondition----------------
            Assert.IsNotNull(multiAssign);
            //---------------Execute Test ----------------------
            var @equals = multiAssign.Equals(multiAssign1);

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void PublishRabbitMqActivityComparer_RabbitMQSourceResourceId_Different_Object_Is_Not_Equal_CaseSensitive()
        {
            //---------------Set up test pack-------------------
            var uniqueId    = Guid.NewGuid().ToString();
            var multiAssign = new PublishRabbitMQActivity()
            {
                UniqueID = uniqueId, Result = "A", DisplayName = "A", RabbitMQSourceResourceId = Guid.Empty
            };
            var multiAssign1 = new PublishRabbitMQActivity()
            {
                UniqueID = uniqueId, Result = "A", DisplayName = "a", RabbitMQSourceResourceId = Guid.Empty.ToString().ToLower().ToGuid()
            };

            //---------------Assert Precondition----------------
            Assert.IsNotNull(multiAssign);
            //---------------Execute Test ----------------------
            var @equals = multiAssign.Equals(multiAssign1);

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        public void PublishRabbitMqActivityComparer_RabbitMQSourceResourceId_Same_Object_IsEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId    = Guid.NewGuid().ToString();
            var multiAssign = new PublishRabbitMQActivity()
            {
                UniqueID = uniqueId, Result = "", RabbitMQSourceResourceId = Guid.Empty
            };
            var multiAssign1 = new PublishRabbitMQActivity()
            {
                UniqueID = uniqueId, Result = "", RabbitMQSourceResourceId = Guid.Empty
            };

            //---------------Assert Precondition----------------
            Assert.IsNotNull(multiAssign);
            //---------------Execute Test ----------------------
            var @equals = multiAssign.Equals(multiAssign1);

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        public void PublishRabbitMqActivityComparer_Message_Different_Object_Is_Not_Equal_CaseSensitive()
        {
            //---------------Set up test pack-------------------
            var uniqueId    = Guid.NewGuid().ToString();
            var multiAssign = new PublishRabbitMQActivity()
            {
                UniqueID = uniqueId, Result = "A", QueueName = "AAA", Message = "KLKL"
            };
            var multiAssign1 = new PublishRabbitMQActivity()
            {
                UniqueID = uniqueId, Result = "A", QueueName = "AAA", Message = "klkl"
            };

            //---------------Assert Precondition----------------
            Assert.IsNotNull(multiAssign);
            //---------------Execute Test ----------------------
            var @equals = multiAssign.Equals(multiAssign1);

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }