public async Task TestSchoolBookmarkedSchoolClassBookmarksUpdated() { IVplanDataStore dataStore = new CloudVplanDataStore(); await dataStore.BookmarkSchool("SCHOOL_A", true); Assert.That(dataStore.SchoolClassBookmarks, Has.Count.EqualTo(2)); await dataStore.BookmarkSchool("SCHOOL_A", false); Assert.That(dataStore.SchoolClassBookmarks, Has.Count.EqualTo(0)); }
public async Task TestSchoolBookmarksUpdated() { IVplanDataStore dataStore = new CloudVplanDataStore(); await dataStore.BookmarkSchool("SCHOOL_A", true); Assert.That(dataStore.GetSchoolBookmark("SCHOOL_A").Bookmarked, Is.True); await dataStore.BookmarkSchool("SCHOOL_A", false); Assert.That(dataStore.GetSchoolBookmark("SCHOOL_A").Bookmarked, Is.False); }