public static ProductOptionDto BuildProductOptionDto()
 => new ProductOptionDto
 {
     Name        = RandomBuilder.NextString(),
     Description = RandomBuilder.NextString(),
     ProductId   = Guid.NewGuid()
 };
예제 #2
0
 public static ProductDto BuildProductDto()
 => new ProductDto
 {
     Code          = RandomBuilder.NextString(),
     Name          = RandomBuilder.NextString(),
     Description   = RandomBuilder.NextString(),
     Price         = RandomBuilder.NextDecimal(),
     DeliveryPrice = RandomBuilder.NextDecimal()
 };
예제 #3
0
 public static Product BuildProduct()
 => new Product
 {
     Id            = Guid.NewGuid(),
     Code          = RandomBuilder.NextString(),
     Name          = RandomBuilder.NextString(),
     Description   = RandomBuilder.NextString(),
     Price         = RandomBuilder.NextDecimal(),
     DeliveryPrice = RandomBuilder.NextDecimal()
 };