public void ShouldDecompressTwoTables() { MiniStorage db = NewStorage(); var repos = db.ReadRepos(); Assert.IsNotNull(db); }
public void ShouldRestoreIngredients() { MiniStorage db = NewStorage(); var ingredients = PlainTextReader.Split(db.ReadRepos()[0].Content, "\n") .DelimitBy(ColumnDelimiter.Tab) .GetAListOf <Ingredients>(); Assert.AreEqual(3, ingredients.Count); }
private static MiniStorage NewStorage() { var db = new MiniStorage(); db.Register(new List <StoreDefinition> { new StoreDefinition("Ingredients", Sampler.NewUpIngredients()), new StoreDefinition("Recipies", Sampler.NewUpRecipies()) }); return(db); }
public void ShouldRegister2Tables() { MiniStorage db = NewStorage(); Assert.IsNotNull(db); }