Пример #1
0
        public static void LoadMockData(this IEntryStore store)
        {
            NotesModel a = new NotesModel
            {
                Title = "Sprint Planning Meeting",
                Text  = "1. Scope 2. Backlog 3. Duration"
            };

            NotesModel b = new NotesModel
            {
                Title = "Daily Scrum Stand-up",
                Text  = "1. Yesterday 2. Today 3. Impediments"
            };

            NotesModel c = new NotesModel
            {
                Title = "Sprint Retrospective",
                Text  = "1. Reflection 2. Actions"
            };

            Task.WhenAll(
                store.AddAsync(a),
                store.AddAsync(b),
                store.AddAsync(c))
            .ConfigureAwait(false);
        }
Пример #2
0
        public App()
        {
            InitializeComponent();

            MainPage = new EntriesPage();
            Entries  = new MemoryEntryStore();
            Entries.LoadMockData();
        }
Пример #3
0
        public static void LoadMockData(this IEntryStore store)
        {
            var a = new Entry()
            {
                Title = "Sprint Planning Meeting", Content = "1. Scope 2. Backlog 3. Duration"
            };
            var b = new Entry()
            {
                Title = "Daily Scrum Stand-up", Content = "1. Yesterday 2. Today 3. Impediments"
            };
            var c = new Entry()
            {
                Title = "Sprint Retrospective", Content = "1. Reflection 2. Actions"
            };

            store.WriteAsync(a).Wait();
            store.WriteAsync(b).Wait();
            store.WriteAsync(c).Wait();
        }
Пример #4
0
        public static void LoadMockData(this IEntryStore store)
        {
            var a = new Entry()
            {
                Title = "Sprint Planning Meeting", Content = "1. Scope"
            };
            var b = new Entry()
            {
                Title = "Sprint Planning Meeting", Content = "1. Scope"
            };
            var c = new Entry()
            {
                Title = "Sprint Planning Meeting", Content = "1. Scope"
            };

            store.WriteAsync(a).Wait();
            store.WriteAsync(b).Wait();
            store.WriteAsync(c).Wait();
        }
Пример #5
0
        public static void LoadMockData(this IEntryStore store)
        {
            var a = new Entry()
            {
                ExpenseCategory = "Food", ExpenseName = "Chick-Fil-A"
            };
            var b = new Entry()
            {
                ExpenseCategory = "Food", ExpenseName = "Wendy's"
            };
            var c = new Entry()
            {
                ExpenseCategory = "Food", ExpenseName = "McDonalds"
            };

            store.WriteAsync(a).Wait();
            store.WriteAsync(b).Wait();
            store.WriteAsync(c).Wait();
        }