Exemplo n.º 1
0
        public void ShouldDecompressTwoTables()
        {
            MiniStorage db    = NewStorage();
            var         repos = db.ReadRepos();

            Assert.IsNotNull(db);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        public void ShouldRegister2Tables()
        {
            MiniStorage db = NewStorage();

            Assert.IsNotNull(db);
        }