@ -6,7 +6,6 @@ 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 ;
@ -60,7 +59,7 @@ namespace UnitTest.Ordering.Application
public async Task Get_orders_success ( )
public async Task Get_orders_success ( )
{
{
//Arrange
//Arrange
var fakeDynamicResult = Enumerable . Empty < object > ( ) ;
var fakeDynamicResult = new Object ( ) ;
_orderQueriesMock . Setup ( x = > x . GetOrdersAsync ( ) )
_orderQueriesMock . Setup ( x = > x . GetOrdersAsync ( ) )
. Returns ( Task . FromResult ( fakeDynamicResult ) ) ;
. Returns ( Task . FromResult ( fakeDynamicResult ) ) ;
@ -93,7 +92,7 @@ namespace UnitTest.Ordering.Application
public async Task Get_cardTypes_success ( )
public async Task Get_cardTypes_success ( )
{
{
//Arrange
//Arrange
var fakeDynamicResult = Enumerable . Empty < object > ( ) ;
var fakeDynamicResult = new Object ( ) ;
_orderQueriesMock . Setup ( x = > x . GetCardTypesAsync ( ) )
_orderQueriesMock . Setup ( x = > x . GetCardTypesAsync ( ) )
. Returns ( Task . FromResult ( fakeDynamicResult ) ) ;
. Returns ( Task . FromResult ( fakeDynamicResult ) ) ;