Ejemplo n.º 1
0
 public FoodTruckTag(FoodTruck foodTruck, Tag tag)
     : base(ObjectState.NEW)
 {
     FoodTruck   = foodTruck;
     FoodTruckId = foodTruck.FoodTruckId;
     Tag         = tag;
     TagId       = tag.TagId;
 }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 public Review(FoodTruck foodTruck, DateTime reviewDate, int rating, string details)
     : base(ObjectState.NEW)
 {
     _foodTruck  = foodTruck;
     _reviewDate = reviewDate;
     _rating     = rating;
     _details    = details;
 }
Ejemplo n.º 3
0
 protected internal FoodTruckTag(int id, FoodTruck foodTruck, Tag tag)
     : base(ObjectState.UNCHANGED)
 {
     _foodTruckTagId = id;
     FoodTruck       = foodTruck;
     FoodTruckId     = foodTruck.FoodTruckId;
     Tag             = tag;
     TagId           = tag.TagId;
 }
Ejemplo n.º 4
0
 public FoodTruckTag(FoodTruck foodTruck, Tag tag)
     : base(ObjectState.NEW)
 {
     //this.foodTruckTagId = default(int);
     this.FoodTruck   = foodTruck;
     this.FoodTruckId = this.FoodTruck.FoodTruckId;
     this.Tag         = tag;
     this.TagId       = this.Tag.TagId;
 }
Ejemplo n.º 5
0
 protected Review(int reviewId, FoodTruck foodTruck, DateTime reviewDate, int rating, string details)
     : base(ObjectState.UNCHANGED)
 {
     _reviewId   = reviewId;
     _foodTruck  = foodTruck;
     _reviewDate = reviewDate;
     _rating     = rating;
     _details    = details;
 }
 public SocialMediaAccount(SocialMediaPlatform platform, FoodTruck truck, String accountName)
     : base(ObjectState.NEW)
 {
     _foodTruck           = truck;
     _foodTruckId         = truck.FoodTruckId;
     _socialMediaPlatform = platform;
     _platformId          = platform.PlatformId;
     _accountName         = accountName;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Constructor used by application code when a new scheduled time for a food truck is being created
 /// </summary>
 public Schedule(FoodTruck foodTruck, Location location, DateTime startTime, DateTime endTime)
     : base(ObjectState.NEW)
 {
     this.foodTruckId    = foodTruck.FoodTruckId;
     this.foodTruck      = foodTruck;
     this.locationId     = location.LocationId;
     this.location       = location;
     this.ScheduledStart = startTime;
     this.ScheduledEnd   = endTime;
 }
Ejemplo n.º 8
0
 internal Schedule(int scheduleId, FoodTruck foodTruck, Location location, DateTime startTime, DateTime endTime)
     : base(ObjectState.UNCHANGED)
 {
     this.scheduleId     = scheduleId;
     this.foodTruckId    = foodTruck.FoodTruckId;
     this.foodTruck      = foodTruck;
     this.locationId     = location.LocationId;
     this.location       = location;
     this.ScheduledStart = startTime;
     this.ScheduledEnd   = endTime;
 }