File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,28 @@ Get the code via git:
27
27
git clone git://github.com/slashdotdash/faker-cs.git
28
28
29
29
Example code
30
- ``` csharp
30
+ ``` CSharp
31
31
var name = Faker .Name .FullName (); // Tod Yundt
32
32
var firstName = Faker .Name .First (); // Orlando
33
33
var lastName = Faker .Name .Last (); // Brekke
34
34
var address = Faker .Address .StreetAddress (); // 713 Pfeffer Bridge
35
35
var city = Faker .Address .City (); // Reynaton
36
36
var number = Faker .RandomNumber .Next (100 ); // 30
37
+ var dob = Faker .Identification .DateOfBirth (); // 1971-11-16T00:00:00.0000000Z
38
+
39
+ ```US - United States
37
40
var ssn = Faker .Identification .SocialSecurityNumber (); // 249-17-9666
38
41
var mbi = Faker .Identification .MedicareBeneficiaryIdentifier (); // 8NK0Q74KT53
42
+ var usPassport = Faker .Identification .UsPassport (); // 335587506
43
+
44
+ ```UK - United Kingdom
39
45
var nin = Faker .Identification .UkNationalInsuranceNumber (); // YA171053Y
40
- var dob = Faker .Identification .DateOfBirth ( ); // 1971-11-16T00:00:00.0000000Z
46
+ var ninFormatted = Faker .Identification .UkNationalInsuranceNumber ( true ); // YA 17 10 53 Y
41
47
var ukPassport = Faker .Identification .UkPassport (); // 496675685
42
- var usPassport = Faker .Identification .UsPassport (); // 335587506
48
+ var ukNhs = Faker .Identification .NhsNumber (); // 6584168301
49
+ var ukNhsFormatted = Faker .Identification .NhsNumber (true ); // 658 416 8301
50
+
51
+ ```BG - Bulgaria
43
52
var bulgarianPin = Faker .Identification .BulgarianPin (); // 6402142606
44
53
45
54
```
You can’t perform that action at this time.
0 commit comments