public void PerformRequestToTheSubstanceEndpoint() { this.SetupAndAssertControllerAllRecords( () => this._controller.Substance(), dataService => dataService.GetSubstances(), StubData.GetAllSubstances()); }
public void PerformRequestToTheProductEndpoint() { this.SetupAndAssertControllerAllRecords( () => this._controller.Product(), dataService => dataService.GetProducts(), StubData.GetAllProducts()); }
public void PerformRequestToTheCountryEndpoint() { this.SetupAndAssertControllerAllRecords( () => this._controller.Countries(), dataService => dataService.GetCountries(), StubData.GetAllCountries()); }
public void PerformRequestToThePharmaceuticalFormEndpoint() { this.SetupAndAssertControllerAllRecords( () => this._controller.PharmaceuticalForm(), dataService => dataService.GetPharmaceuticalForms(), StubData.GetAllPharmaceuticalForms()); }
public void PerformRequestToTheProductEndpointWithIdentifier(string identifier) { this.SetupAndAssertControllerSingleRecord( identifier, id => this._controller.ProductById(id), dataService => dataService.GetProducts(), StubData.GetAllProducts()); }
public void PerformRequestToThePharmaceuticalFormEndpointWithIdentifier(string identifier) { this.SetupAndAssertControllerSingleRecord( identifier, id => this._controller.PharmaceuticalFormById(id), dataService => dataService.GetPharmaceuticalForms(), StubData.GetAllPharmaceuticalForms()); }
public void PerformRequestToTheSubstanceEndpointWithIdentifier(string identifier) { this.SetupAndAssertControllerSingleRecord( identifier, id => this._controller.SubstanceById(id), dataService => dataService.GetSubstances(), StubData.GetAllSubstances()); }