/// <summary> /// Create a new instance of an Address. /// </summary> /// <param name="id"></param> /// <param name="address1"></param> /// <param name="address2"></param> /// <param name="postal"></param> /// <returns></returns> public static Entity.Address CreateAddress(int id, string address1, string address2, string postal, Entity.Province province = null) { if (province == null) { province = EntityHelper.CreateProvince("BC", "British Columbia"); } return(new Entity.Address(address1, address2, "Victoria", province, postal) { Id = id, RowVersion = new byte[] { 12, 13, 14 } }); }
/// <summary> /// Create a new instance of an Address. /// </summary> /// <param name="id"></param> /// <param name="address1"></param> /// <param name="address2"></param> /// <param name="administrativeArea"></param> /// <param name="province"></param> /// <param name="postal"></param> /// <returns></returns> public static Entity.Address CreateAddress(int id, string address1, string address2, string administrativeArea, Entity.Province province, string postal) { return(new Entity.Address(address1, address2, administrativeArea, province, postal) { Id = id, RowVersion = new byte[] { 12, 13, 14 } }); }