public void Setup()
        {
            _handler = new SitecoreParentHandler();

            _itemPath  = "/sitecore/content/Data/SitecoreParentHandler/Parent/Child";

            _db = global::Sitecore.Configuration.Factory.GetDatabase("master");
            Context context = new Context(
                   new AttributeConfigurationLoader(
                       "Glass.Sitecore.Mapper.Tests.Domain,  Glass.Sitecore.Mapper.Tests"), null);

            _service = new SitecoreService(_db);
        }
        public void Setup()
        {
            _handler = new SitecoreParentHandler();

            _itemId = new Guid("{8A317CBA-81D4-4F9E-9953-64C4084AECCA}");
            _db = global::Sitecore.Configuration.Factory.GetDatabase("master");
            var context = new InstanceContext(
                (new SitecoreClassConfig[]{
                    new SitecoreClassConfig(){
                        ClassAttribute = new SitecoreClassAttribute(),
                        Properties = new SitecoreProperty[]{
                            new SitecoreProperty(){
                                Attribute = new SitecoreIdAttribute(),
                                Property = typeof(SitecoreParentHandlerFixtureNS.ChildClass).GetProperty("Id")
                            }
                        },
                        Type = typeof(SitecoreParentHandlerFixtureNS.ChildClass),
                        DataHandlers = new AbstractSitecoreDataHandler[]{}
                    }
                }).ToDictionary(),
                new AbstractSitecoreDataHandler[] { });

            _service = new SitecoreService(_db, context);
        }