Skip to content

Instantly share code, notes, and snippets.

@RealDotNetDave
Created June 19, 2019 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RealDotNetDave/4cc932cfcb76a2da25257135c7492cb2 to your computer and use it in GitHub Desktop.
Save RealDotNetDave/4cc932cfcb76a2da25257135c7492cb2 to your computer and use it in GitHub Desktop.
Person Type Used In Performance Tests
// ***********************************************************************
// Assembly : dotNetTips.CodePerf.Example.App
// Author : David McCarter
// Created : 06-04-2019
//
// Last Modified By : David McCarter
// Last Modified On : 06-10-2019
// ***********************************************************************
// <copyright file="Person.cs" company="dotNetTips.com - McCarter Consulting">
// 2019: David McCarter - McCarter Consulting
// </copyright>
// <summary></summary>
// ***********************************************************************
using System;
namespace dotNetTips.CodePerf.Example.App.Models
{
/// <summary>
/// Class Person.
/// </summary>
/// <seealso cref="System.IComparable" />
[Serializable]
public class Person
{
/// <summary>
/// Initializes a new instance of the <see cref="Person" /> class.
/// </summary>
/// <param name="id">The identifier.</param>
/// <param name="email">The email.</param>
public Person(string id, string email)
{
this.Id = id;
this.Email = email;
}
/// <summary>
/// Initializes a new instance of the <see cref="Person" /> class.
/// </summary>
public Person()
{ }
/// <summary>
/// Gets or sets the address1.
/// </summary>
/// <value>The address1.</value>
public string Address1 { get; set; }
/// <summary>
/// Gets or sets the address2.
/// </summary>
/// <value>The address2.</value>
public string Address2 { get; set; }
/// <summary>
/// Gets or sets the born on.
/// </summary>
/// <value>The born on.</value>
public DateTime BornOn { get; set; }
/// <summary>
/// Gets or sets the cell phone.
/// </summary>
/// <value>The cell phone.</value>
public string CellPhone { get; set; }
/// <summary>
/// Gets or sets the city.
/// </summary>
/// <value>The city.</value>
public string City { get; set; }
/// <summary>
/// Gets or sets the country.
/// </summary>
/// <value>The country.</value>
public string Country { get; set; } = "USA";
/// <summary>
/// Gets the email.
/// </summary>
/// <value>The email.</value>
public string Email { get; set; }
/// <summary>
/// Gets or sets the first name.
/// </summary>
/// <value>The first name.</value>
public string FirstName { get; set; }
/// <summary>
/// Gets or sets the home phone.
/// </summary>
/// <value>The home phone.</value>
public string HomePhone { get; set; }
/// <summary>
/// Gets the identifier.
/// </summary>
/// <value>The identifier.</value>
public string Id { get; set; }
/// <summary>
/// Gets or sets the last name.
/// </summary>
/// <value>The last name.</value>
public string LastName { get; set; }
/// <summary>
/// Gets or sets the postal code.
/// </summary>
/// <value>The postal code.</value>
public string PostalCode { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment