private Task ValidateIssueList(IssueList issueList, IPlanGridApi client) { throw new NotImplementedException(); }
public BoardCreatorTests() { memoryCache = new Mock <IMemoryCache>(); jiraClient = new Mock <IJiraClient>(); credentials = new Credentials(); presentationId = "1"; boardConfiguration = new BoardConfig() { Id = "74", Name = "Test Board", ColumnConfig = new ColumnConfig() { Columns = new List <Column>() { new Column() { Name = "To-Do", Statuses = new List <ColumnStatus> { new ColumnStatus() { Id = "1" } } }, new Column() { Name = "In Progress", Statuses = new List <ColumnStatus> { new ColumnStatus() { Id = "2" } } }, new Column() { Name = "Done", Statuses = new List <ColumnStatus> { new ColumnStatus() { Id = "3" } } } } } }; colorList = new ColorList() { CardColors = new List <CardColor> { new CardColor() { Color = "#ff0000", DisplayValue = "Blocker", Value = "1" }, new CardColor() { Color = "#ffc0c0", DisplayValue = "Critical", Value = "2" }, new CardColor() { Color = "#c2ffc2", DisplayValue = "Major", Value = "3" }, new CardColor() { Color = "#ffffc2", DisplayValue = "Minor", Value = "4" }, new CardColor() { Color = "#bfbfbf", DisplayValue = "Trivial", Value = "5" } } }; cachedBoard = new Board("74"); issuePageOne = new IssueList() { StartAt = 0, MaxResults = 2, Total = 4, Issues = new List <Issue>() { new Issue() { Key = "TestIssue-1", Fields = new Fields() { Assignee = new Assignee() { DisplayName = "TestAssignee1" }, Summary = "Hello World!", Priority = new Priority() { Name = "Critical" }, Status = new Status() { Name = "To-Do", Id = "1" } } }, new Issue() { Key = "TestIssue-2", Fields = new Fields() { Assignee = new Assignee() { DisplayName = "TestAssignee1" }, Summary = "Hello World!", Priority = new Priority() { Name = "Critical" }, Status = new Status() { Name = "In Progress", Id = "2" } } }, } }; issuePageTwo = new IssueList() { StartAt = 2, MaxResults = 2, Total = 4, Issues = new List <Issue>() { new Issue() { Key = "TestIssue-3", Fields = new Fields() { Assignee = new Assignee() { DisplayName = "TestAssignee2" }, Summary = "Hello World 2!", Priority = new Priority() { Name = "Trivial" }, Status = new Status() { Name = "To-Do", Id = "1" } } }, new Issue() { Key = "TestIssue-4", Fields = new Fields() { Assignee = new Assignee() { DisplayName = "TestAssignee2" }, Summary = "Hello World 2!", Priority = new Priority() { Name = "Major" }, Status = new Status() { Name = "Done", Id = "3" } } }, } }; controller = new BoardCreator(jiraClient.Object); }
static void Main(string[] args) { string input = null; BookCatalog _bookObj = new BookCatalog(); IssueList _issueList = new IssueList(); Customer customer = new Customer(); Worker worker = new Worker(); while (true) { Console.WriteLine("Выберите: "); Console.WriteLine("1 - Работник"); Console.WriteLine("2 - Клиент"); Console.WriteLine("0 - Выход из программы"); Console.WriteLine("_________________________"); var chooseKey = ((input = Console.ReadLine()) != null && input.Length > 0) ? input[0] : ' '; switch (chooseKey) { case '1': { Console.Clear(); Console.WriteLine("Выберите функцию для работника: "); Console.WriteLine("1 - Просмотреть каталог"); Console.WriteLine("2 - Добавить в каталог книгу"); Console.WriteLine("3 - Посмотреть список выдач"); Console.WriteLine("0 - Выйти в главное меню"); var chooseKey1 = ((input = Console.ReadLine()) != null && input.Length > 0) ? input[0] : ' '; switch (chooseKey1) { case '1': worker.ViewCatalog(ref _bookObj); break; case '2': _bookObj.AddBook(); break; case '3': _issueList.ShowList(); break; case '0': Console.Clear(); break; default: Console.WriteLine("Не корректный ввод, повторите снова..."); Console.ReadKey(); Console.Clear(); break; } } break; case '2': { Console.Clear(); Console.WriteLine("Выберите функцию для клиента:"); Console.WriteLine("1 - Просмотреть каталог библиотеки"); Console.WriteLine("2 - Просмотреть список взятых книг"); Console.WriteLine("3 - Взять книгу"); Console.WriteLine("4 - Вернуть книгу"); Console.WriteLine("0 - Выйти в главное меню"); var chooseKey2 = ((input = Console.ReadLine()) != null && input.Length > 0) ? input[0] : ' '; switch (chooseKey2) { case '1': customer.ViewCatalog(ref _bookObj); break; case '2': customer._books.ShowListBook(); break; case '3': customer.TakeBook(ref _bookObj, ref worker, ref _issueList); break; case '4': customer.ReturnBook(ref worker, ref _bookObj); break; case '0': { Console.Clear(); break; } default: Console.WriteLine("Не корректный ввод, повторите снова..."); Console.ReadKey(); Console.Clear(); break; } } break; case '0': { Console.Clear(); return; } default: Console.WriteLine("Не корректный ввод, повторите снова..."); Console.ReadKey(); Console.Clear(); break; } } }