FilterMapping IFilterMappingProvider.GetFilterMapping()
 {
     var mapping = new FilterMapping();
     mapping.Set(x => x.Name, Layer.Defaults, Name);
     mapping.Set(x => x.Condition, Layer.Defaults, Condition);
     return mapping;
 }
 public void ShouldWriteTheFilter()
 {
     var filter = new FilterMapping();
     filter.Set(x => x.Name, Layer.Defaults, "sid");
     filter.Set(x => x.Condition, Layer.Defaults, "Fred = :george");
     
     var writer = new XmlFilterWriter();
     writer.VerifyXml(filter)
         .RootElement.HasName("filter")
         .HasAttribute("name", "sid")
         .HasAttribute("condition", "Fred = :george");
 }