public void TearDown() { _httpClientWrapperMock = null; _sut = null; }
public OrdersService(IConfiguration configuration, IGenericRestClient restClient) { _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _restClient = restClient ?? throw new ArgumentNullException(nameof(restClient)); _restClient.Configure(GetApiUrl, GetApiKey); }
public void Setup() { _httpClientWrapperMock = new Mock <IHttpClientWrapper>(); _sut = new GenericRestClient(_httpClientWrapperMock.Object); }