Пример #1
0
        public void CanImportLayline()
        {
            var dbProvider = new PersistentDbProvider(new ServerConfiguration {DatabaseAddress = "http://localhost:8080/"});
            var csvInterop = new CsvInterop(dbProvider);

            csvInterop.ReadFromCsv("../../TestData/layline_short.csv");
        }
Пример #2
0
        public static void Create()
        {
            var dbProvider = new PersistentDbProvider(new ServerConfiguration {DatabaseAddress = "http://localhost:8080/"});
            new ShopRepository(dbProvider).CreateShop("Sample");
            var productRepository = new ProductRepository(dbProvider);

            for (int i = 0; i < 1000; i++)
                productRepository.Create(GetRandomProduct());
        }