Created
May 31, 2025 17:35
-
-
Save wullemsb/41de4c669e4b83c82524896158e2cd5c to your computer and use it in GitHub Desktop.
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
private static Gen<Reservation> GenerateReservation => | |
from d in ArbMap.Default.GeneratorFor<DateTime>() | |
from e in ArbMap.Default.GeneratorFor<NonWhiteSpaceString>() | |
from n in ArbMap.Default.GeneratorFor<NonWhiteSpaceString>() | |
from q in ArbMap.Default.GeneratorFor<PositiveInt>() | |
select new Reservation | |
{ | |
Date = d, | |
Email = e.Item, | |
Name = n.Item, | |
Quantity = q.Item | |
}; |
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
private static Gen<Reservation> GenerateReservation => | |
from d in Arb.Default.DateTime().Generator | |
from e in Arb.Default.NonWhiteSpaceString().Generator | |
from n in Arb.Default.NonWhiteSpaceString().Generator | |
from q in Arb.Default.PositiveInt().Generator | |
select new Reservation | |
{ | |
Date = d, | |
Email = e.Item, | |
Name = n.Item, | |
Quantity = q.Item | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment