public void DefaultParser_RedirectDetails_InvalidXml()
 {
     DefaultInAnotherCastleParser parser = new DefaultInAnotherCastleParser();
     //missing CacheDurationInMinutes
     string xml     = @"<MissingAllRequiredAttributes></MissingAllRequiredAttributes>";
     var    results = parser.ParseRedirectDetails(xml);
 }
        public void DefaultParserT_RedirectDetails_ValidXml()
        {
            DefaultInAnotherCastleParser parser = new DefaultInAnotherCastleParser();
            //missing CacheDurationInMinutes
            string xml     = @"<InAnotherCastleConfigSectionRedirect Mode=""Standard"" Name=""TestName"" SystemName=""SystemNameTest"" Type=""TestType""  CacheDurationInMinutes=""100"" ></InAnotherCastleConfigSectionRedirect>";
            var    results = parser.ParseRedirectDetails(xml);

            results.WithDeepEqual(new MockRedirectIdentifier()
            {
                CacheDurationInMinutes = 100,
                Name       = "TestName",
                Type       = "TestType",
                SystemName = "SystemNameTest",
                Mode       = Mode.Standard,
                PocoBody   = new PocoBody()
            }).IgnoreUnmatchedProperties().Assert();
        }