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