Created
January 30, 2020 10:20
-
-
Save tonnguyen/2161a36c62d9d8f151ccf1e6ddbd5537 to your computer and use it in GitHub Desktop.
Generate variants
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (int i = 0; i < 200; i++) | |
{ | |
var variant = new AddVariantToBaseProductModel() | |
{ | |
Id = "RandomVariant" + i, | |
SystemId = Guid.NewGuid(), | |
BaseProductSystemId = baseProduct.SystemId, | |
Name = "RandomVariant" + i, | |
}.MapTo<Variant>(); | |
_variantService.Create(variant); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment