public ScanBuilder() { _scan = new Scan { Title = GuidGenerator.GenerateNewGuidString(RandomNumberGenerator.GenerateRandomInteger(5, 10)) }; }
public ClassBuilder() { _class = new Class { Name = GuidGenerator.GenerateNewGuidString(RandomNumberGenerator.GenerateRandomInteger(5, 10)) }; }
public ToddlerBuilder() { Random random = new Random(); _toddler = new Toddler { Name = GuidGenerator.GenerateNewGuidString(RandomNumberGenerator.GenerateRandomInteger(5, 10)), Surname = GuidGenerator.GenerateNewGuidString(RandomNumberGenerator.GenerateRandomInteger(5, 10)) }; _toddler.QRCode = _toddler.Surname + _toddler.Name; }
public SchoolTripBuilder() { var random = new Random(); var startDateNumber = random.Next(random.Next(5)); _schoolTrip = new SchoolTrip { StartDateTime = DateTime.Now.AddDays(startDateNumber), EndDateTime = DateTime.Now.AddDays(startDateNumber + random.Next(5)), Title = GuidGenerator.GenerateNewGuidString(RandomNumberGenerator.GenerateRandomInteger(5, 10)), }; }
public TeacherBuilder() { _teacher = new Teacher { Name = GuidGenerator.GenerateNewGuidString(RandomNumberGenerator.GenerateRandomInteger(5, 10)), Surname = GuidGenerator.GenerateNewGuidString(RandomNumberGenerator.GenerateRandomInteger(5, 10)), Username = GuidGenerator.GenerateNewGuidString(RandomNumberGenerator.GenerateRandomInteger(5, 10)), PasswordHash = GuidGenerator.GenerateNewGuidByteArray(RandomNumberGenerator.GenerateRandomInteger(5, 10)), PasswordSalt = GuidGenerator.GenerateNewGuidByteArray(RandomNumberGenerator.GenerateRandomInteger(5, 10)), LastModified = DateTime.Now }; }