public void GetSubManagerHierarchyTestSuccess()
        {
            int      managerId = 274;
            Employee obj       = _managerHierarchy.GetHierarchy(managerId);

            string recievedHierarchy = SerilizationHelper.SerializeObject(obj);

            string expectedHierarchy = EmbededFileHelper.ReadEmbededfile(this.GetType().Assembly, "ExpectedResult.ExpectedSuccessSubManager.txt");

            Assert.AreEqual(recievedHierarchy, expectedHierarchy, "Actual : \n" + recievedHierarchy + "\n Expected \n " + expectedHierarchy);
        }
        public FacebookProfile Authenticate(HttpRequest request = null)
        {
            FacebookOAuthClient facebookOAuthClient = new FacebookOAuthClient
            {
                AppId       = AppID,
                AppSecret   = AppSecret,
                RedirectUri = RedirectUri
            };

            Dictionary <string, object> oauthParams = new Dictionary <string, object>
            {
                {
                    "redirect_uri", RedirectUri
                }
            };

            FacebookAuthResult facebookAuthResult = SerilizationHelper.Deserialize <FacebookAuthResult>(facebookOAuthClient.ExchangeCodeForAccessToken(AuthCode, oauthParams).ToString());

            Token = facebookAuthResult.access_token;
            FacebookClient facebookClient = new FacebookClient(Token);

            return(SerilizationHelper.Deserialize <FacebookProfile>(facebookClient.Get("/me").ToString()));
        }