예제 #1
0
 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);
 }
예제 #2
0
 private static void AssertModelEquality(CartItemViewModel viewModel, CartItemModel domainModel)
 {
     viewModel.Id.ShouldBeEquivalentTo(domainModel.Key.ToString());
 }