Updated
This commit is contained in:
26
Mocktester/Program.cs
Normal file
26
Mocktester/Program.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
using EonaCat.Json;
|
||||
using EonaCat.Mocking;
|
||||
using System;
|
||||
|
||||
namespace EonaCat.Tester.Mocking
|
||||
{
|
||||
public static class MockTest
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var user = new MockHelper().Generate<User>();
|
||||
Console.WriteLine(JsonHelper.ToJson(user));
|
||||
}
|
||||
}
|
||||
|
||||
public class User
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public int Id { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public DateTime BirthDate { get; set; }
|
||||
public string CompanyName { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user