public static Contact makeContact()
 {
     long time = DateTime.Now.Ticks;
     var con = new Contact();
     con.FirstName = "Firstly" + time;
     con.LastName = "Secondly" + time;
     con.Address1 = "52 Vexford Lane";
     con.City = "Anaheim";
     con.State = "California";
     con.Country = "United States";
     con.PostalCode = "92808";
     con.WorkEmail = "[email protected]";
     con.WorkPhone = "4152225151";
     return con;
 }
Ejemplo n.º 2
0
 public Ticket(string number, Contact owner)
 {
     this.Number = number;
     this.Owner = owner;
 }
        public void SetUp()
        {
            Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
            Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");

            Company company = new Company("Star Wars", 120242124.52);
            Contact owner = new Contact("Luke Skywalker", company);
            this.ticket = new Ticket("123456", owner);
        }