public IActionResult OnlyMyPartners() { // path to your excel file string path = "D:\\data.xlsx"; FileInfo fileInfo = new FileInfo(path); StringBuilder sb = new StringBuilder(); ExcelPackage package = new ExcelPackage(fileInfo); ExcelWorksheet worksheet = package.Workbook.Worksheets[0]; // get number of rows and columns in the sheet int rows = worksheet.Dimension.Rows; // 20 int columns = worksheet.Dimension.Columns; // 7 List <KanbanModel> lstkanbanModels = new List <KanbanModel>(); // loop through the worksheet rows and columns for (int row = 2; row <= rows; row++) { KanbanModel kanban = new KanbanModel(); kanban.CodeId = worksheet.Cells[row, 1].Value.ToString(); kanban.Subject = worksheet.Cells[row, 2].Value.ToString(); kanban.DeveloperName = worksheet.Cells[row, 3].Value.ToString(); kanban.AssignedOn = worksheet.Cells[row, 4].Value.ToString(); kanban.Priority = worksheet.Cells[row, 5].Value.ToString(); kanban.StatusCode = worksheet.Cells[row, 6].Value.ToString(); lstkanbanModels.Add(kanban); } TempData["data"] = lstkanbanModels; return(View(lstkanbanModels)); }
/// /// /// Handles a click event on one of our kanbanmodels inside our Sfkanban /// /// private void KanbanModelClicked(object sender, KanbanTappedEventArgs e) { KanbanModel currentClickedKanbanModel = (KanbanModel)e.Data; // If the current click is the first click on the item: if (clickIdentifier) { clickIdentifier = false; clickedKanbanModel = currentClickedKanbanModel; thisDoubleClickGestureListener.timer.Start(); } // If the current click is the second click on the item: else if (!clickIdentifier && clickedKanbanModel.Equals(currentClickedKanbanModel)) { thisDoubleClickGestureListener.timer.Stop(); clickIdentifier = true; // Now we need to make the current card as finished MarkCardAsFinished(e.Column, (long)((KanbanModel)e.Data).ID); //Toast.MakeText(this, "Fire Double Click Event", ToastLength.Short).Show(); } // A new kanbanModel was clicked therefore we are starting a new DoubleClickGesture for that object else if (!clickIdentifier && !currentClickedKanbanModel.Equals(clickedKanbanModel)) { // First we stop the timer thisDoubleClickGestureListener.timer.Stop(); // Secondly we sent the click identifier to true clickIdentifier = true; // Thirdly we assign the currently clicked kanbanmodel as the last clickedKanbanModel = currentClickedKanbanModel; // Then we start an intent on the currently click //Intent showDetailsActivity = new Intent(this, typeof(DetailsCardActivity)); //showDetailsActivity.PutExtra("kanbanModelId", (long)clickedKanbanModel.ID); //StartActivityForResult(showDetailsActivity, DETAILS_ACTIVITY_CODE); } }
public async Task <int> UpdateAsync(int id, KanbanModel model) { foreach (var step in model.Instruction.Steps) { step.MachineId = step.Machine.Id; step.Machine = null; } KanbanLogic.UpdateModelAsync(id, model); return(await DbContext.SaveChangesAsync()); }
KanbanModel CloneModel(KanbanModel model, object category) { KanbanModel newModel = new KanbanModel(); newModel.ImageURL = model.ImageURL; newModel.Category = category; newModel.ColorKey = model.ColorKey; newModel.Description = model.Description; newModel.ID = model.ID; newModel.Tags = model.Tags; newModel.Title = model.Title; return(newModel); }
public async Task <int> CreateAsync(KanbanModel model) { do { model.Code = CodeGenerator.Generate(); }while (DbSet.Any(d => d.Code.Equals(model.Code))); foreach (var step in model.Instruction.Steps) { step.MachineId = step.Machine.Id; step.Machine = null; } KanbanLogic.CreateModel(model); return(await DbContext.SaveChangesAsync()); }
public void UpdateKanban(DailyOperationModel model, string flag) { KanbanModel kanban = this.DbSetKanban.Where(k => k.Id.Equals(model.KanbanId)).SingleOrDefault(); int currentStepIndex = (flag == "create" ? kanban.CurrentStepIndex += 1 : flag == "update" ? kanban.CurrentStepIndex : kanban.CurrentStepIndex -= 1); kanban.CurrentQty = model.GoodOutput != null ? (double)model.GoodOutput : 0; kanban.CurrentStepIndex = currentStepIndex; kanban.GoodOutput = model.GoodOutput != null ? (double)model.GoodOutput : 0; kanban.BadOutput = model.BadOutput != null ? (double)model.GoodOutput : 0; EntityExtension.FlagForUpdate(kanban, IdentityService.Username, UserAgent); DbSetKanban.Update(kanban); }
private void LoadKanban() { // Get connection with connection string from Properties SQLiteConnection Connection = new SQLiteConnection("Data Source=" + Environment.CurrentDirectory + Properties.Settings.Default.DBPath); Connection.Open(); DataContext db = new DataContext(Connection); // Get a typed table to run queries. Table <ScrumTask> ScrumTsks = db.GetTable <ScrumTask>(); Table <SprintTask> SprintTsks = db.GetTable <SprintTask>(); Table <TeamMember> TeamMembers = db.GetTable <TeamMember>(); var query = from spt in SprintTsks join sct in ScrumTsks on spt.ScrumTaskID equals sct.ID join tmm in TeamMembers on spt.TeamMemberID equals tmm.ID where spt.SprintID == SprintID select new { ID = spt.ID, Title = sct.Title, Category = spt.State, Description = sct.Description, ExternalID = sct.ExternalID, Nickname = tmm.Nickname }; /* * select spt.ID, sct.Title, spt.State * from SprintTask spt * inner join ScrumTask sct * on sct.ID = spt.ScrumTaskID * where spt.SprintID = 1 */ foreach (var task in query) { KanbanModel kbTask = new KanbanModel(); kbTask.ID = task.ID.ToString(); kbTask.Title = task.Title; kbTask.Description = task.Description; kbTask.Category = task.Category; kbTask.ColorKey = "High"; kbTask.Tags = new string[] { task.ExternalID.ToString() }; if (!task.Nickname.Equals("")) { kbTask.ImageURL = new Uri(@"Images/" + task.Nickname + ".png", UriKind.RelativeOrAbsolute); } KanbanTasks.Add(kbTask); } }
public DailyOperationModel GetNewDataInputPrinting(KanbanModel kanban) { DailyOperationModel model = new DailyOperationModel { KanbanId = kanban.Id, Type = "input", DateInput = DateTimeOffset.UtcNow, MachineId = kanban.Instruction.Steps.ElementAt(2).MachineId, StepId = kanban.Instruction.Steps.ElementAt(2).Id, StepProcess = kanban.Instruction.Steps.ElementAt(2).Process, BadOutputReasons = new List <DailyOperationBadOutputReasonsModel> { new DailyOperationBadOutputReasonsModel() }, Shift = "shift" }; return(model); }
private void kanban_DragEnd(object sender, KanbanDragEndEventArgs e) { if (e.SelectedColumn.Title.ToString() == "Menu" && e.SelectedColumn != e.TargetColumn && e.TargetColumn.Title.ToString() == "Order") { e.IsCancel = true; KanbanModel selectedCard = e.SelectedCard.Content as KanbanModel; KanbanModel model = new KanbanModel(); model.Category = e.TargetKey; model.Description = selectedCard.Description; model.ImageURL = selectedCard.ImageURL; model.ColorKey = selectedCard.ColorKey; model.Tags = selectedCard.Tags; model.ID = selectedCard.ID; model.Title = selectedCard.Title; (kanban.ItemsSource as ObservableCollection <KanbanModel>).Add(model); } }
protected override void OnAppearing() { base.OnAppearing(); try { Board.ItemsSource = Cards; VM.Items.CollectionChanged += (sender, args) => { foreach (var item in VM.Items) { KanbanModel card = item; if (!Cards.Select(c => c.ID).Contains(card.ID)) { Cards.Add(card); } } }; } catch (Exception e) { Console.WriteLine(e); } }
public TaskDetails() { Tasks = new ObservableCollection <KanbanModel>(); KanbanModel task = new KanbanModel(); task.Title = "UWP Issue"; task.ID = "6593"; task.Description = "Sorting is not working properly in DateTimeAxis"; task.Category = "Postponed"; task.ColorKey = "High"; task.Tags = new string[] { "Bug Fixing" }; task.ImageURL = new Uri(@"Images/Image0.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "New Feature"; task.ID = "6593"; task.Description = "Need to create code base for Gantt control"; task.Category = "Postponed"; task.ColorKey = "Low"; task.Tags = new string[] { "GanttControl UWP" }; task.ImageURL = new Uri(@"Images/Image1.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "UG"; task.ID = "6516"; task.Description = "Need to do post processing work for closed incidents"; task.Category = "Postponed"; task.ColorKey = "Normal"; task.Tags = new string[] { "Post processing" }; task.ImageURL = new Uri(@"Images/Image2.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "UWP Issue"; task.ID = "651"; task.Description = "Crosshair label template not visible in UWP."; task.Category = "Open"; task.ColorKey = "High"; task.Tags = new string[] { "Bug Fixing" }; task.ImageURL = new Uri(@"Images/Image3.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "UWP Issue"; task.ID = "646"; task.Description = "AxisLabel cropped when rotate the axis label."; task.Category = "Open"; task.ColorKey = "Low"; task.Tags = new string[] { "Bug Fixing" }; task.ImageURL = new Uri(@"Images/Image4.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "WPF Issue"; task.ID = "23822"; task.Description = "Need to implement tooltip support for histogram series."; task.Category = "Open"; task.ColorKey = "High"; task.Tags = new string[] { "Bug Fixing" }; task.ImageURL = new Uri(@"Images/Image0.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Kanban Feature"; task.ID = "25678"; task.Description = "Need to prepare SampleBrowser sample"; task.Category = "InProgress"; task.ColorKey = "Low"; task.Tags = new string[] { "New control" }; task.ImageURL = new Uri(@"Images/Image5.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "WP Issue"; task.ID = "1254"; task.Description = "HorizontalAlignment for tooltip is not working"; task.Category = "InProgress"; task.ColorKey = "High"; task.Tags = new string[] { "Bug fixing" }; task.ImageURL = new Uri(@"Images/Image2.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "WPF Issue"; task.ID = "28066"; task.Description = "In minimized state, first and last segment have incorrect spacing"; task.Category = "Review"; task.ColorKey = "Normal"; task.Tags = new string[] { "Bug Fixing" }; task.ImageURL = new Uri(@"Images/Image1.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "WPF Issue"; task.ID = "29477"; task.Description = "Null reference exception thrown in line chart"; task.Category = "Review"; task.ColorKey = "Normal"; task.Tags = new string[] { "Bug Fixing" }; task.ImageURL = new Uri(@"Images/Image7.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "WPF Issue"; task.ID = "29574"; task.Description = "Minimum and maximum property are not working in dynamic update"; task.Category = "Review"; task.ColorKey = "High"; task.Tags = new string[] { "Bug Fixing" }; task.ImageURL = new Uri(@"Images/Image0.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Kanban Feature"; task.ID = "29574"; task.Description = "Need to implement tooltip support for SfKanban"; task.Category = "Review"; task.ColorKey = "High"; task.Tags = new string[] { "New Control" }; task.ImageURL = new Uri(@"Images/Image4.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "New Feature"; task.ID = "29574"; task.Description = "Dragging events support for SfKanban"; task.Category = "Closed"; task.ColorKey = "Normal"; task.Tags = new string[] { "New Control" }; task.ImageURL = new Uri(@"Images/Image5.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "New Feature"; task.ID = "29574"; task.Description = "Swimlane support for SfKanban"; task.Category = "Open"; task.ColorKey = "Low"; task.Tags = new string[] { "New Control" }; task.ImageURL = new Uri(@"Images/Image8.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); }
public TaskDetails() { Tasks = new ObservableCollection <KanbanModel>(); KanbanModel task = new KanbanModel(); task.Title = "Application performance"; task.ID = "2"; task.Assignee = "Andrew Fuller"; task.Description = "Improve application performance."; task.Category = "Backlog"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Andrew.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Analysis"; task.ID = "18"; task.Assignee = "Andrew Fuller"; task.Description = "Analyze SQL server 2008 connection."; task.Category = "In Progress"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Andrew.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Editing"; task.ID = "25"; task.Assignee = "Andrew Fuller"; task.Description = "Enhance editing functionality."; task.Category = "Testing"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Andrew.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Editing"; task.ID = "37"; task.Assignee = "Andrew Fuller"; task.Description = "Add input validation for editing."; task.Category = "Testing"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Andrew.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Customer meeting"; task.ID = "42"; task.Assignee = "Andrew Fuller"; task.Description = "Arrange a web meeting with the customer to show filtering demo."; task.Category = "Done"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Andrew.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Filtering issue"; task.ID = "45"; task.Assignee = "Andrew Fuller"; task.Description = "Fix the filtering issues reported in Safari."; task.Category = "Done"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Andrew.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Filtering feature"; task.ID = "49"; task.Assignee = "Andrew Fuller"; task.Description = "Enhance filtering feature."; task.Category = "Done"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Andrew.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Customer meeting"; task.ID = "3"; task.Assignee = "Janet Leverling"; task.Description = "Arrange a web meeting with the customer to get new requirements."; task.Category = "Backlog"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Janet.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "IE browser issues"; task.ID = "4"; task.Assignee = "Janet Leverling"; task.Description = "Fix the issues reported in the IE browser."; task.Category = "In Progress"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Janet.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "SQL error"; task.ID = "16"; task.Assignee = "Janet Leverling"; task.Description = "Fix cannot open user's default database SQL error."; task.Category = "In Progress"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Janet.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Chrome issue"; task.ID = "28"; task.Assignee = "Janet Leverling"; task.Description = "Fix editing issues reported in chrome."; task.Category = "In Progress"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Janet.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Data binding issues"; task.ID = "17"; task.Assignee = "Janet Leverling"; task.Description = "Fix the issues reported in data binding."; task.Category = "Testing"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Janet.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Customer issues"; task.ID = "29"; task.Assignee = "Janet Leverling"; task.Description = "Fix the editing issues reported by customer."; task.Category = "Testing"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Janet.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Analysis"; task.ID = "22"; task.Assignee = "Janet Leverling"; task.Description = "Analyze stored procedures."; task.Category = "Done"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Janet.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Editing feature"; task.ID = "34"; task.Assignee = "Janet Leverling"; task.Description = "Test editing feature in the IE browser."; task.Category = "Done"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Janet.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Filtering feature"; task.ID = "46"; task.Assignee = "Janet Leverling"; task.Description = "Test filtering in the IE browser."; task.Category = "Done"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Janet.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Responsive support"; task.ID = "14"; task.Assignee = "Laura Callahan"; task.Description = "Add responsive support to application."; task.Category = "In Progress"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Laura.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Filtering feature"; task.ID = "48"; task.Assignee = "Laura Callahan"; task.Description = "Check filtering validation."; task.Category = "Testing"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Laura.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Login validation"; task.ID = "8"; task.Assignee = "Laura Callahan"; task.Description = "Login page validation."; task.Category = "Done"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Laura.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Data in Grid"; task.ID = "15"; task.Assignee = "Margaret Hamilt"; task.Description = "Show the retrieved data from the server in grid control."; task.Category = "Backlog"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Margaret.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Filtering issues"; task.ID = "40"; task.Assignee = "Margaret Hamilt"; task.Description = "Fix filtering issues reported in the IE browser."; task.Category = "In Progress"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Margaret.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Testing"; task.ID = "10"; task.Assignee = "Margaret Hamilt"; task.Description = "Test the application in the IE browser."; task.Category = "Done"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Margaret.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Analysis"; task.ID = "20"; task.Assignee = "Margaret Hamilt"; task.Description = "Analyze grid control."; task.Category = "Done"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Margaret.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Customer meeting"; task.ID = "39"; task.Assignee = "Michael Suyama"; task.Description = "Arrange a web meeting with the customer to get new filtering requirements."; task.Category = "Backlog"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Michael.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Testing"; task.ID = "12"; task.Assignee = "Michael Suyama"; task.Description = "Check login page validation."; task.Category = "Testing"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Michael.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); task = new KanbanModel(); task.Title = "Customer meeting"; task.ID = "6"; task.Assignee = "Michael Suyama"; task.Description = "Arrange a web meeting with the customer to get the login page requirements."; task.Category = "Done"; task.ColorKey = "Normal"; task.ImageURL = new Uri(@"Images/Michael.png", UriKind.RelativeOrAbsolute); Tasks.Add(task); }
public MenuDetails() { PizzaShop = new ObservableCollection <KanbanModel>(); KanbanModel item = new KanbanModel(); item.Category = "Menu"; item.Title = "Double Cheese Margherita"; item.Description = "The minimalist classic with a double helping of cheese"; item.Tags = new string[] { "Onions", "Bell Pepper", "Pork", "Cheese" }; item.ImageURL = new Uri("ms-appx:///Images/PizzaShop/DoubleCheeseMargherita.png"); PizzaShop.Add(item); item = new KanbanModel(); item.Category = "Menu"; item.Title = "Bucolic Pie"; item.Description = "The pizza you daydream about to escape city life. Onions, peppers, and tomatoes"; item.Tags = new string[] { "Onions", "Bell Pepper", "Pork", "Cheese" }; item.ImageURL = new Uri("ms-appx:///Images/PizzaShop/Bucolicpie.png"); PizzaShop.Add(item); item = new KanbanModel(); item.Category = "Menu"; item.Title = "Bumper Crop"; item.Description = "Can't get enough veggies? Eat this. Carrots, mushrooms, potatoes, and way more"; item.Tags = new string[] { "Onions", "Bell Pepper", "Pork", "Cheese" }; item.ImageURL = new Uri("ms-appx:///Images/PizzaShop/Bumpercrop.png"); PizzaShop.Add(item); item = new KanbanModel(); item.Category = "Menu"; item.Title = "Spice of Life"; item.Description = "Thrill-seeking, heat-seeking pizza people only. It's hot. Trust us"; item.Tags = new string[] { "Onions", "Bell Pepper", "Pork", "Cheese" }; item.ImageURL = new Uri("ms-appx:///Images/PizzaShop/Spiceoflife.png"); PizzaShop.Add(item); item = new KanbanModel(); item.Category = "Order"; item.Title = "Very Nicoise"; item.Description = "Anchovies, Dijon vinaigrette, shallots, red peppers, and potatoes"; item.Tags = new string[] { "Onions", "Bell Pepper", "Pork", "Cheese" }; item.ImageURL = new Uri("ms-appx:///Images/PizzaShop/Verynicoise.png"); PizzaShop.Add(item); item = new KanbanModel(); item.Category = "Menu"; item.Title = "Margherita"; item.Description = "The classic. Fresh tomatoes, garlic, olive oil, and basil. For pizza purists and minimalists only"; item.Tags = new string[] { "Onions", "Bell Pepper", "Pork", "Cheese" }; item.ImageURL = new Uri("ms-appx:///Images/PizzaShop/Margherita.png"); PizzaShop.Add(item); item = new KanbanModel(); item.Category = "Menu"; item.Title = "Very Nicoise"; item.Description = "Anchovies, Dijon vinaigrette, shallots, red peppers, and potatoes"; item.Tags = new string[] { "Onions", "Bell Pepper", "Pork", "Cheese" }; item.ImageURL = new Uri("ms-appx:///Images/PizzaShop/Verynicoise.png"); PizzaShop.Add(item); item = new KanbanModel(); item.Category = "Ready to Serve"; item.Title = "Margherita"; item.Description = "The classic. Fresh tomatoes, garlic, olive oil, and basil. For pizza purists and minimalists only"; item.Tags = new string[] { "Onions", "Bell Pepper", "Pork", "Cheese" }; item.ImageURL = new Uri("ms-appx:///Images/PizzaShop/Margherita.png"); item.ColorKey = "Ready"; PizzaShop.Add(item); item = new KanbanModel(); item.Category = "Ready to Delivery"; item.Title = "Salad Daze"; item.Description = "Pretty much salad on a pizza. Broccoli, olives, cherry tomatoes, red onion"; item.Tags = new string[] { "Onions", "Bell Pepper", "Pork", "Cheese" }; item.ImageURL = new Uri("ms-appx:///Images/PizzaShop/Saladdaze.png"); item.ColorKey = "Delivery"; PizzaShop.Add(item); item = new KanbanModel(); item.Category = "Menu"; item.Title = "Salad Daze"; item.Description = "Pretty much salad on a pizza. Broccoli, olives, cherry tomatoes, red onion"; item.Tags = new string[] { "Onions", "Bell Pepper", "Pork", "Cheese" }; item.ImageURL = new Uri("ms-appx:///Images/PizzaShop/Saladdaze.png"); PizzaShop.Add(item); }
public void Should_Throws_NotImplementedException_When_Validate() { KanbanModel model = new KanbanModel(); Assert.Throws <NotImplementedException>(() => model.Validate(null)); }