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