Beispiel #1
0
 static PlaylistServiceFactory()
 {
     SettingsProvider = new SerialisationSettingsProvider();
     EndpointProvider = new EndpointProvider();
     HttpService      = new FakeHttpService(SettingsProvider);
     TokenService     = new FakeTokenService(Guid.NewGuid().ToString());
 }
 public SpotifyApiService(IHttpService httpService, ITokenReaderService tokenService, EndpointProvider endpointProvider, SerialisationSettingsProvider serialisationSettingsProvider)
 {
     HttpService      = httpService;
     TokenService     = tokenService;
     EndpointProvider = endpointProvider;
     SerialisationSettingsProvider = serialisationSettingsProvider;
 }
 public HttpService(SerialisationSettingsProvider serialisationSettingsProvider, IAuthenticationDecorator authenticationDecorator)
 {
     client = new HttpClient();
     this.serialisationSettingsProvider = serialisationSettingsProvider;
     this.authenticationDecorator       = authenticationDecorator;
 }
Beispiel #4
0
 public FakeHttpService(SerialisationSettingsProvider serialisationSettingsProvider)
 {
     this.serialisationSettingsProvider = serialisationSettingsProvider;
 }
 public UserService(IHttpService httpService, ITokenReaderService tokenService, EndpointProvider endpointProvider, SerialisationSettingsProvider serialisationSettingsProvider)
     : base(httpService, tokenService, endpointProvider, serialisationSettingsProvider)
 {
 }