Exemple #1
0
        private ObjectNormalizerFacade CreateTestNormalizer()
        {
            ObjectNormalizerFacade facade = new
                                            ObjectNormalizerFacade(ObjectClass.ACCOUNT,
                                                                   new MyAttributeNormalizer());

            return(facade);
        }
Exemple #2
0
        private void AssertNormalizedFilter(Filter expectedNormalizedFilter,
                                            Filter filter)
        {
            ObjectNormalizerFacade facade =
                CreateTestNormalizer();

            filter = facade.NormalizeFilter(filter);
            String expectedXml = SerializerUtil.SerializeXmlObject(expectedNormalizedFilter, false);
            String actualXml   = SerializerUtil.SerializeXmlObject(filter, false);

            Assert.AreEqual(expectedXml, actualXml);
        }
 private ObjectNormalizerFacade CreateTestNormalizer()
 {
     ObjectNormalizerFacade facade = new
     ObjectNormalizerFacade(ObjectClass.ACCOUNT,
             new MyAttributeNormalizer());
     return facade;
 }