private void Save(ItemToRead itemToRead) { using (var documentSession = documentStore.OpenSession()) { documentSession.Store(itemToRead); documentSession.SaveChanges(); } }
private static ItemToRead CreateItemToRead(String id) { var itemToRead = new ItemToRead { Id = id, Description = "Solid Javascript", Uri = new Uri("https://www.youtube.com/watch?v=TAVn7s-kO9o"), Tags = new List<string>() {"Development", "SOLID"} }; return itemToRead; }