StubWeatherApiClient.js
Home
/
Src /
ReactDependecyInjection /
ClientApp /
src /
Model /
DAL /
WebApi /
StubWeatherApiClient.js
import { ErrorEntity } from '../../Entities/Error/ErrorEntity';
import { IWeatherApiClient } from '../../DAL.Contract/WebApi/IWeatherApiClient';
export class StubWeatherApiClient extends IWeatherApiClient {
constructor() {
super('StubWeatherApiClient');
}
WeatherForecasts() {
return new Promise((resolve, reject) => {
reject(
new ErrorEntity(ErrorEntity.Exception, 'TestError')
.SetClassName(this.ClassName)
.SetMethodName('WeatherForecasts')
);
})
}
}