public void PerformRequestToTheProductEndpoint() { this.SetupAndAssertControllerAllRecords( () => this._controller.Product(), dataService => dataService.GetProducts(), StubData.GetAllProducts()); }
public void PerformRequestToTheProductEndpointWithIdentifier(string identifier) { this.SetupAndAssertControllerSingleRecord( identifier, id => this._controller.ProductById(id), dataService => dataService.GetProducts(), StubData.GetAllProducts()); }