public void Load_CanSaveAndLoadItemsFromBucket() { _memoryStore.Save(_item); var itemRetrieved = _memoryStore.Load <ContentItem>(_item.Id).Single(); Assert.That(itemRetrieved.Metadata.Title, Is.EqualTo("Some post")); }
public void SetUp() { _memoryStore = new InMemoryBackingStore(); _bucket = ContentBucket.Default("My Bucket"); _memoryStore.Save(User.Default); _memoryStore.Save(_bucket); _item = new ContentItem(User.Default.ToRef()) { Metadata = { Title = "Some post" }, Body = "Some content" }; }