예제 #1
0
 private ISKUOrderItem GetSKUOrderItem(ISKU sku, int count)
 {
     return(new ISKUOrderItemStubBuilder()
            .WithSKU(sku)
            .WithCount(count)
            .Build());
 }
예제 #2
0
 public ISKUOrderItemStubBuilder WithSKU(ISKU sku)
 {
     MyMock.SetupGet(x => x.SKU).Returns(sku);
     return(this);
 }
예제 #3
0
 public PromotionType1()
 {
     offerSKU   = new SKU_A();
     cost       = 130;
     countOfSKU = 3;
 }
예제 #4
0
 public PromotionType3()
 {
     offerSKU1 = new SKU_C();
     offerSKU2 = new SKU_D();
     cost      = 30;
 }
예제 #5
0
 public PromotionType2()
 {
     offerSKU   = new SKU_B();
     cost       = 45;
     countOfSKU = 2;
 }