Refactor mapper application to enable unit tests

Change-Id: I58cac8879f93ce49bfb654a1bf559d7f77b5b486
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/phosphor-ldap-mapper/ldap_mapper_mgr.hpp b/phosphor-ldap-mapper/ldap_mapper_mgr.hpp
index b2617ca..ae8f6c9 100644
--- a/phosphor-ldap-mapper/ldap_mapper_mgr.hpp
+++ b/phosphor-ldap-mapper/ldap_mapper_mgr.hpp
@@ -38,8 +38,10 @@
      *
      *  @param[in] bus  - sdbusplus handler
      *  @param[in] path - D-Bus path
+     *  @param[in] filePath - serialization directory path
      */
-    LDAPMapperMgr(sdbusplus::bus::bus &bus, const char *path);
+    LDAPMapperMgr(sdbusplus::bus::bus &bus, const char *path,
+                  const char *filePath);
 
     /** @brief Creates a mapping for the group to the privilege
      *
@@ -92,6 +94,9 @@
     /** @brief object path for the manager object*/
     const std::string path;
 
+    /** @brief serialization directory path */
+    std::string persistPath;
+
     /** @brief available privileges container */
     std::set<std::string> privMgr = {"priv-admin", "priv-operator", "priv-user",
                                      "priv-callback"};