Exemple #1
0
 public MyGenericService(MyFakeDataService dataService) => DataService = dataService ?? throw new System.ArgumentNullException(nameof(dataService));
Exemple #2
0
 public MyService(ApplicationDbContext context, MyFakeDataService dataService)
 {
     Context     = context ?? throw new System.ArgumentNullException(nameof(context));
     DataService = dataService ?? throw new System.ArgumentNullException(nameof(dataService));
 }