public Borda Unpack(IList<string> files, string key) { var borda = new Borda(); return files.Aggregate(borda, (b, file) => b + Unpack(file, key)); }
public string ImprimeListas() { var str = $@" Borda: [{ string.Join(", ", Borda.Select(b => b.Estado.ToString())) }]"; return(str); }
public void Pack(Borda borda, string key, string inputPic, string outPic) { var serializer = new DataContractJsonSerializer(typeof(Borda)); using (var stream = new MemoryStream()) { serializer.WriteObject(stream, borda); Pack(stream, key, inputPic, outPic); } }
public static Borda RandomBorda() { //todo: messages tree var borda = new Borda(); var threads = new Thread[_random.Next(5)]; for (int i = 0; i < threads.Count(); i++) { threads[i] = new Thread() { ID = Guid.NewGuid().ToString(), Name = RandomText(), Messages = Enumerable.Repeat(1, _random.Next(15)) .Select(x => RandomMessage()) .ToList() }; } return new Borda() { Threads = threads }; }
public void PrepararPizzaComBorda(IPizzaBuilder pizzaBuilder, PizzaSize pizzaSize, Borda borda) { pizzaBuilder.PreparaMassa(pizzaSize); pizzaBuilder.PrepraraBorda(borda); pizzaBuilder.InsereIngradientes(); pizzaBuilder.TempoForno(); pizzaBuilder.DefineValor(); }
public void PreparaBorda(Borda borda) { this.Pizza.Borda = borda; }