public void LoginWithValidCredentials()
        {
            LogHelper.Info("Trying to login via API");
            var loginData = new FormUrlEncodedContent(
                new List <KeyValuePair <string, string> >
            {
                new KeyValuePair <string, string>("controller", "authentication"),
                new KeyValuePair <string, string>("email", ConfigurationManager.AppSettings["Login"]),
                new KeyValuePair <string, string>("passwd", ConfigurationManager.AppSettings["Password"]),
                new KeyValuePair <string, string>("SubmitLogin", "")
            }
                );

            var response = ApiHelper.SendPostRequest(_client, EndPoints.BasePath, loginData,
                                                     ContentTypeConstants.FormUrlencoded);

            var logOutButtonXpath  = "//*[@class='logout']";
            var accountButtonXpath = "//*[@class='account']";

            HtmlAssertions.IsElementExistsOnHtmlPage(response.Result.Content.ReadAsStringAsync().Result, logOutButtonXpath).Should().BeTrue();
            HtmlAssertions.IsElementExistsOnHtmlPage(response.Result.Content.ReadAsStringAsync().Result, accountButtonXpath).Should().BeTrue();
        }