Exemple #1
0
 public void PerformRequestToTheSubstanceEndpoint()
 {
     this.SetupAndAssertControllerAllRecords(
         () => this._controller.Substance(),
         dataService => dataService.GetSubstances(),
         StubData.GetAllSubstances());
 }
Exemple #2
0
 public void PerformRequestToTheSubstanceEndpointWithIdentifier(string identifier)
 {
     this.SetupAndAssertControllerSingleRecord(
         identifier,
         id => this._controller.SubstanceById(id),
         dataService => dataService.GetSubstances(),
         StubData.GetAllSubstances());
 }