File tree Expand file tree Collapse file tree 4 files changed +8
-20
lines changed
projects/common/src/app/application-business-rules/use-cases
sign-in-with-email-and-password Expand file tree Collapse file tree 4 files changed +8
-20
lines changed Original file line number Diff line number Diff line change 1
- import { Inject , Injectable } from '@angular/core' ;
1
+ import { Injectable } from '@angular/core' ;
2
2
import { GetTranslationsDataSource } from '@common/application-business-rules/data-sources/get-translations/get-translations.data-source' ;
3
3
import { Observable } from 'rxjs' ;
4
4
5
5
@Injectable ( )
6
6
export class GetTranslationsUseCase {
7
- constructor (
8
- @Inject ( GetTranslationsDataSource )
9
- private dataSource : GetTranslationsDataSource ,
10
- ) { }
7
+ constructor ( private dataSource : GetTranslationsDataSource ) { }
11
8
12
9
execute (
13
10
translations : ( ) => Promise < object > ,
Original file line number Diff line number Diff line change 1
- import { Inject , Injectable } from '@angular/core' ;
1
+ import { Injectable } from '@angular/core' ;
2
2
import { IsEmailExistsDataSource } from '@common/application-business-rules/data-sources/is-email-exists/is-email-exists.data-source' ;
3
3
import { IsEmailExistsResponse } from '@common/entities/is-email-exists/is-email-exists.entity' ;
4
4
import { Observable } from 'rxjs' ;
5
5
6
6
@Injectable ( )
7
7
export class IsEmailExistsUseCase {
8
- constructor (
9
- @Inject ( IsEmailExistsDataSource )
10
- private dataSource : IsEmailExistsDataSource ,
11
- ) { }
8
+ constructor ( private dataSource : IsEmailExistsDataSource ) { }
12
9
13
10
execute ( email : string ) : Observable < IsEmailExistsResponse > {
14
11
return this . dataSource . execute ( email ) ;
Original file line number Diff line number Diff line change 1
- import { Inject , Injectable } from '@angular/core' ;
1
+ import { Injectable } from '@angular/core' ;
2
2
import { IsFeatureEnabledDataSource } from '@common/application-business-rules/data-sources/is-feature-enabled/is-feature-enabled.data-source' ;
3
3
import { IsFeatureEnabledResponse } from '@common/entities/is-feature-enabled/is-feature-enabled.entity' ;
4
4
5
5
@Injectable ( )
6
6
export class IsFeatureEnabledUseCase {
7
- constructor (
8
- @Inject ( IsFeatureEnabledDataSource )
9
- private dataSource : IsFeatureEnabledDataSource ,
10
- ) { }
7
+ constructor ( private dataSource : IsFeatureEnabledDataSource ) { }
11
8
12
9
execute ( feature : string ) : Promise < IsFeatureEnabledResponse > {
13
10
return this . dataSource . execute ( feature ) ;
Original file line number Diff line number Diff line change 1
- import { Inject , Injectable } from '@angular/core' ;
1
+ import { Injectable } from '@angular/core' ;
2
2
import { SignInWithEmailAndPasswordDataSource } from '@common/application-business-rules/data-sources/sign-in/sign-in.data-source' ;
3
3
import { SignInWithEmailAndPasswordResponse } from '@common/entities/sign-in-with-email-and-password/sign-in-with-email-and-password.entity' ;
4
4
import { Observable } from 'rxjs' ;
5
5
6
6
@Injectable ( )
7
7
export class SignInWithEmailAndPasswordUseCase {
8
- constructor (
9
- @Inject ( SignInWithEmailAndPasswordDataSource )
10
- private dataSource : SignInWithEmailAndPasswordDataSource ,
11
- ) { }
8
+ constructor ( private dataSource : SignInWithEmailAndPasswordDataSource ) { }
12
9
13
10
execute (
14
11
email : string ,
You can’t perform that action at this time.
0 commit comments