public void WhenCreateAnInstanceWithAPaththatDoesntEndsWithindex_phpAppendItToPath(string path) { var mauticConfig = new MauticClientConfiguration(path); StringAssert.EndsWith("/index.php", mauticConfig.BaseUrl); }
public void CreateHttpTest() { _mauticClientConfiguration = new MauticClientConfiguration("http://test.com"); _oAuth2Credentials = new OAuth2Credentials("clientId", "clientSecret", "http://callbackUri.com", "userName", "password"); _sut = new MauticAuthorization(_oAuth2Credentials, _mauticClientConfiguration); }
public MauticAuthorization(OAuth2Credentials oAuth2Credentials, MauticClientConfiguration configuration) { _oAuth2Credentials = oAuth2Credentials; _configuration = configuration; }