예제 #1
0
        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);
        }
예제 #2
0
 internal void ResetClient()
 {
     this.InternalClient = new MailmanClient(this);
 }