public void Setup() { this.appSettings = new AppSettings(); this.restClientFactory = A.Fake <IRestClientFactory>(); this.restRequestFactory = A.Fake <IRestRequestFactory>(); this.restClient = A.Fake <IRestClient>(); this.restRequest = A.Fake <IRestRequest>(); A.CallTo(() => this.restClientFactory.Create(A <Uri> .Ignored)).Returns(this.restClient); A.CallTo(() => this.restRequestFactory.Create(A <string> .Ignored)).Returns(this.restRequest); this.jobProfileOverviewAPI = new JobProfileOverviewAPI(this.restClientFactory, this.restRequestFactory, this.appSettings); }
public void SetUp() { this.jobProfileOverviewApi = new JobProfileOverviewAPI(new RestClientFactory(), new RestRequestFactory(), this.AppSettings); }