示例#1
0
        public void CaseInsensitiveParameters()
        {
            //  arrange
            var message = new EAEPMessage();
            message["monkey"] = "helloWorld";

            //  act
            var containsParameter = message.ContainsParameter("MONKEY");

            //  assert
            Assert.IsTrue(containsParameter);
        }
示例#2
0
        public void ContainsParameterTest()
        {
            // Arrange
            var message = new EAEPMessage
                          {
                              Host = "app1",
                              Application = "ecommerce",
                              Event = "purchase"
                          };
            message["value"] = "25.00";
            message["currency"] = "EUR";
            message["user"] = "******";

            // Act / Assert
            Assert.IsTrue(message.ContainsParameter("currency"));
            Assert.IsFalse(message.ContainsParameter("bilge"));
        }