public void Should_be_able_to_get_valid_api_url_paths()
        {
            const string expected = "http://apiurl/path";

            var api = new McAfeeApi(new McAfeeConfiguration("http://apiurl/", "user", "pwd", TimeSpan.MaxValue,
                                                            "analyzer-profile", 3, TimeSpan.MaxValue, TimeSpan.MaxValue));

            Assert.That(api.GetFullApiUrl("/path"), Is.EqualTo(expected));
            Assert.That(api.GetFullApiUrl("path"), Is.EqualTo(expected));

            api = new McAfeeApi(new McAfeeConfiguration("http://apiurl", "user", "pwd", TimeSpan.MaxValue,
                                                        "analyzer-profile", 3, TimeSpan.MaxValue, TimeSpan.MaxValue));

            Assert.That(api.GetFullApiUrl("/path"), Is.EqualTo(expected));
            Assert.That(api.GetFullApiUrl("path"), Is.EqualTo(expected));
        }
 public void Should_be_able_to_get_list_of_analyzers()
 {
     using (var api = new McAfeeApi(McAfeeSection.Configuration()))
     {
         var response = api.GetResponse(new RestRequest(api.GetFullApiUrl("vmprofiles.php"))).AsDynamic();
     }
 }