示例#1
0
        public void WhenCreateAnInstanceWithAPaththatDoesntEndsWithindex_phpAppendItToPath(string path)
        {
            var mauticConfig = new MauticClientConfiguration(path);

            StringAssert.EndsWith("/index.php", mauticConfig.BaseUrl);
        }
示例#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);
 }
示例#3
0
 public MauticAuthorization(OAuth2Credentials oAuth2Credentials, MauticClientConfiguration configuration)
 {
     _oAuth2Credentials = oAuth2Credentials;
     _configuration     = configuration;
 }