public MailmanClientTests() { _client = new MailmanClient(new MailmanList()); _restClientMock = new Mock <IRestClient>(); _restClientMock.SetupProperty(r => r.BaseUrl); var restField = typeof(MailmanClient).GetField("_client", BindingFlags.Instance | BindingFlags.NonPublic); restField.SetValue(_client, _restClientMock.Object); }
internal void ResetClient() { this.InternalClient = new MailmanClient(this); }