public OrangeRocklandClientImpl(ApiClient apiClient) { this.apiClient = apiClient; authentication = new OrangeRocklandAuthenticationClientImpl(this); greenButton = new GreenButtonClientImpl(this); billDocuments = new BillDocumentClientImpl(this); }
public BillDocumentServiceTest() { var orangeRocklandClient = A.Fake <OrangeRocklandClient>(); billDocumentService = new BillDocumentServiceImpl(orangeRocklandClient); billDocumentClient = A.Fake <BillDocumentClient>(); A.CallTo(() => orangeRocklandClient.BillDocuments).Returns(billDocumentClient); }
public BillDocumentClientTest() { var client = A.Fake <OrangeRocklandClientImpl>(); A.CallTo(() => client.ApiClient).Returns(apiClient); billDocumentClient = new BillDocumentClientImpl(client); A.CallTo(() => apiClient.HttpClient).Returns(new HttpClient(httpMessageHander)); A.CallTo(() => apiClient.ContentHandlers).Returns(contentHandlers); }