Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
Revert back Shopping cart renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
asvishnyakov committed Oct 29, 2020
1 parent e149323 commit eee279f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ namespace VirtoCommerce.Storefront.Model.Order.Events
/// </summary>
public class OrderPlacedEvent : DomainEvent
{
public OrderPlacedEvent(WorkContext workContext, CustomerOrder order, Cart.ShoppingCart cart)
public OrderPlacedEvent(WorkContext workContext, CustomerOrder order, ShoppingCart cart)
{
WorkContext = workContext;
Cart = cart;
Order = order;
}
public WorkContext WorkContext { get; set; }
public Cart.ShoppingCart Cart { get; set; }
public ShoppingCart Cart { get; set; }
public CustomerOrder Order { get; set; }

}
Expand Down
8 changes: 4 additions & 4 deletions VirtoCommerce.Storefront.Model/WorkContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ public WorkContext()
/// <summary>
/// Gets or sets the current shopping cart
/// </summary>
public Lazy<Cart.ShoppingCart> CurrentCart { get; set; }
public Cart.ShoppingCart Cart => (CurrentCart?.IsValueCreated ?? false) ? CurrentCart.Value : null;
public Lazy<ShoppingCart> CurrentCart { get; set; }
public ShoppingCart Cart => (CurrentCart?.IsValueCreated ?? false) ? CurrentCart.Value : null;


/// <summary>
Expand Down Expand Up @@ -228,8 +228,8 @@ public DateTime StorefrontUtcNow

public IList<Country> AllCountries { get; set; }

public Order.CustomerOrder CurrentOrder { get; set; }
public Order.CustomerOrder Order => CurrentOrder;
public CustomerOrder CurrentOrder { get; set; }
public CustomerOrder Order => CurrentOrder;


public StorefrontNotification StorefrontNotification { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion VirtoCommerce.Storefront/Domain/Cart/CartConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace VirtoCommerce.Storefront.Domain
{

public static partial class OrderConverter
public static partial class CartConverter
{
public static cartDto.ShoppingCartSearchCriteria ToSearchCriteriaDto(this CartSearchCriteria criteria)
{
Expand Down

0 comments on commit eee279f

Please sign in to comment.