private static void AssertModelEqualityWithDeal( CartItemViewModel viewModel, CartItemModel domainModel, DealModel dealModel) { viewModel.DealId.ShouldBeEquivalentTo(dealModel.Key); viewModel.DealThumbnailUrl.ShouldBeEquivalentTo(dealModel.Images.OrderBy(a => a.Order).First().RelativeUrl); viewModel.DealUrl.ShouldBeEquivalentTo(dealModel.CanonicalUrl); viewModel.Id.ShouldBeEquivalentTo(domainModel.Key); }
private static void AssertModelEquality(CartItemViewModel viewModel, CartItemModel domainModel) { viewModel.Id.ShouldBeEquivalentTo(domainModel.Key.ToString()); }