@ -6,6 +6,7 @@ using Microsoft.eShopOnContainers.Services.Ordering.API.Controllers;
using Microsoft.eShopOnContainers.Services.Ordering.API.Infrastructure.Services ;
using Microsoft.eShopOnContainers.Services.Ordering.API.Infrastructure.Services ;
using Moq ;
using Moq ;
using System ;
using System ;
using System.Linq ;
using System.Threading.Tasks ;
using System.Threading.Tasks ;
using Xunit ;
using Xunit ;
@ -59,7 +60,7 @@ namespace UnitTest.Ordering.Application
public async Task Get_orders_success ( )
public async Task Get_orders_success ( )
{
{
//Arrange
//Arrange
var fakeDynamicResult = new Object ( ) ;
var fakeDynamicResult = Enumerable . Empty < object > ( ) ;
_orderQueriesMock . Setup ( x = > x . GetOrdersAsync ( ) )
_orderQueriesMock . Setup ( x = > x . GetOrdersAsync ( ) )
. Returns ( Task . FromResult ( fakeDynamicResult ) ) ;
. Returns ( Task . FromResult ( fakeDynamicResult ) ) ;
@ -92,7 +93,7 @@ namespace UnitTest.Ordering.Application
public async Task Get_cardTypes_success ( )
public async Task Get_cardTypes_success ( )
{
{
//Arrange
//Arrange
var fakeDynamicResult = new Object ( ) ;
var fakeDynamicResult = Enumerable . Empty < object > ( ) ;
_orderQueriesMock . Setup ( x = > x . GetCardTypesAsync ( ) )
_orderQueriesMock . Setup ( x = > x . GetCardTypesAsync ( ) )
. Returns ( Task . FromResult ( fakeDynamicResult ) ) ;
. Returns ( Task . FromResult ( fakeDynamicResult ) ) ;