Fix 147 include order id in details query (#169)

* Adding Id to query so the correct order details are always pulled back

* Removing unused usings

- also removed the sync method as it is not used anywhere in the solution. The Async should be the preferred one.

* Adding integration test for GetByIdWithItemAsync

* Rename test
This commit is contained in:
Eric Fleming
2018-12-14 20:54:23 -05:00
committed by Steve Smith
parent c7c16c4265
commit 0d44a514ab
3 changed files with 66 additions and 13 deletions

View File

@@ -4,9 +4,8 @@ using System.Threading.Tasks;
namespace Microsoft.eShopWeb.ApplicationCore.Interfaces
{
public interface IOrderRepository : IRepository<Order>, IAsyncRepository<Order>
public interface IOrderRepository : IAsyncRepository<Order>
{
Order GetByIdWithItems(int id);
Task<Order> GetByIdWithItemsAsync(int id);
}
}