/// <summary>
 /// Construct SiteMapApi instance
 /// </summary>
 /// <param name="authenticationContext"></param>
 /// <param name="roleApi"></param>
 /// <param name="organizationApi"></param>
 /// <param name="permissionApi"></param>
 /// <param name="platformConfiguration"></param>
 /// <param name="siteMapFilePath"></param>
 public SiteMapApi(IAuthenticationContext authenticationContext, IRoleApi roleApi, IOrganizationApi organizationApi, IPermissionApi permissionApi, IPlatformConfiguration platformConfiguration, string siteMapFilePath)
 {
     this.authenticationContext = authenticationContext;
     this.roleApi = roleApi;
     this.organizationApi = organizationApi;
     this.permissionApi = permissionApi;
     this.platformConfiguration = platformConfiguration;
     this.siteMapFilePath = siteMapFilePath;
 }
 /// <summary>
 /// Construct PermissionApi instance
 /// </summary>
 /// <param name="authenticationContext"></param>
 /// <param name="membershipApi"></param>
 /// <param name="roleApi"></param>
 /// <param name="organizationApi"></param>
 /// <param name="platformConfiguration"></param>
 /// <param name="permissionConfigurationReader"></param>
 public PermissionApi(IAuthenticationContext authenticationContext, 
     IMembershipApi membershipApi,
     IRoleApi roleApi,
     IOrganizationApi organizationApi,
     IPlatformConfiguration platformConfiguration,
     IPermissionConfigurationReader permissionConfigurationReader)
     : base(authenticationContext)
 {
     this.authenticationContext = authenticationContext;
     this.membershipApi = membershipApi;
     this.roleApi = roleApi;
     this.organizationApi = organizationApi;
     this.platformConfiguration = platformConfiguration;
     this.permissionConfigurationReader = permissionConfigurationReader;
 }
        public SaveOrganizationStory()
        {
            Console.WriteLine("=================Setup===================");

            createdOrganizationIds = new List<Guid>();
            createdOrganizationTypeIds = new List<Guid>();

            base.GlobalSetup();

            _utils = new BehaveOrganizationUtils();

            _organizationApi = SpringContext.Current.GetObject<IOrganizationApi>();

            Console.WriteLine("============Ending Setup===================");
        }
        public SaveHierarchyStory()
        {
            Console.WriteLine("=================Setup===================");

            base.GlobalSetup();

            createdOrganizationIds = new List<Guid>();

            createdOrganizationTypeIds = new List<Guid>();

            _Organutils = new BehaveOrganizationUtils();

            //createdRelationshipIds = new List<Guid>();

            createHierarchyIds = new List<Guid>();

            _HierarchyApi = SpringContext.Current.GetObject<IHierarchyApi>();

            _OrganizationApi = SpringContext.Current.GetObject<IOrganizationApi>();

            _RelationShipApi = SpringContext.Current.GetObject<IRelationshipApi>();

            Console.WriteLine("============Ending Setup===================");
        }
        public void Setup()
        {
            createdOrganizationIds = new List<Guid>();
            createdOrganizationTypeIds = new List<Guid>();

            base.GlobalSetup();

            _utils = new BehaveOrganizationUtils();

            _organizationApi = SpringContext.Current.GetObject<IOrganizationApi>();
        }
 public void Setup()
 {
     base.GlobalSetup();
     createdOrganizationIds = new List<Guid>();
     createdOrganizationTypeIds = new List<Guid>();
     _Organutils = new BehaveOrganizationUtils();
     createHierarchyIds = new List<Guid>();
     _HierarchyApi = SpringContext.Current.GetObject<IHierarchyApi>();
     _OrganizationApi = SpringContext.Current.GetObject<IOrganizationApi>();
     _RelationShipApi = SpringContext.Current.GetObject<IRelationshipApi>();
 }