Ejemplo n.º 1
0
 public Recipe(string submittedBy, DateTime creationDate, string description, Array ingredients, TimeSpan cooktime, string[] instructions, BsonString backgroundTag, BsonArray tags, float rating)
 {
     this.submittedBy = submittedBy;
     this.creationDate = creationDate;
     this.description = description;
     this.ingredients = ingredients.ToBsonDocument();
     this.cooktime = cooktime.Minutes;
     this.instructions = instructions.ToBsonDocument();
     this.backgroundTag = backgroundTag;
     this.tags = tags;
     this.rating = rating;
     this.ofTheDay = 0;
 }