This commit is contained in:
Christian Arenas 2017-07-05 13:38:34 +02:00
parent 34e2e19269
commit 3f560757a4
2 changed files with 16 additions and 5 deletions

View File

@ -61,7 +61,17 @@ namespace eShopOnContainers.Core.Services.Basket
public Task CheckoutAsync(BasketCheckout basketCheckout, string token)
{
throw new NotImplementedException();
if (string.IsNullOrEmpty(token))
{
return Task.FromResult(0);
}
if (basketCheckout != null)
{
MockCustomBasket.Items.Clear();
}
return Task.FromResult(0);
}
}
}

View File

@ -60,6 +60,8 @@
TargetType="{x:Type Button}">
<Setter Property="TextColor"
Value="{StaticResource WhiteColor}" />
<Setter Property="BackgroundColor"
Value="{StaticResource LightGreenColor}" />
</Style>
@ -114,10 +116,9 @@
Grid.Row="0"
IsVisible="{Binding IsSubmittedOrder}">
<Button
BackgroundColor="{StaticResource LightGreenColor}"
Command="{Binding ToggleCancelOrderCommand}"
Text="CANCEL ORDER"
Style="{StaticResource CancelOrderButtonStyle}">
Command="{Binding ToggleCancelOrderCommand}"
Text="CANCEL ORDER"
Style="{StaticResource CancelOrderButtonStyle}">
</Button>
</StackLayout>
<ScrollView