Ejemplo n.º 1
0
        public void WhenCreateAnInstanceWithAPaththatDoesntEndsWithindex_phpAppendItToPath(string path)
        {
            var mauticConfig = new MauticClientConfiguration(path);

            StringAssert.EndsWith("/index.php", mauticConfig.BaseUrl);
        }
Ejemplo n.º 2
0
 public void CreateHttpTest()
 {
     _mauticClientConfiguration = new MauticClientConfiguration("http://test.com");
     _oAuth2Credentials         = new OAuth2Credentials("clientId", "clientSecret", "http://callbackUri.com", "userName", "password");
     _sut = new MauticAuthorization(_oAuth2Credentials, _mauticClientConfiguration);
 }
Ejemplo n.º 3
0
 public MauticAuthorization(OAuth2Credentials oAuth2Credentials, MauticClientConfiguration configuration)
 {
     _oAuth2Credentials = oAuth2Credentials;
     _configuration     = configuration;
 }