public DatabaseService(IStoreDatabaseFactory storeDatabaseFactory)
 {
     TableItem                 = storeDatabaseFactory.CreateTableItem();
     TableItemGroup            = storeDatabaseFactory.CreateTableItemGroup();
     TableFloorplan            = storeDatabaseFactory.CreateTableFloorplan();
     TableStoreSection         = storeDatabaseFactory.CreateTableStoreSection();
     TableItemSectionPlacement = storeDatabaseFactory.CreateTableItemSectionPlacement();
 }
        public void SetUp()
        {
            _db = Substitute.For <IDatabaseService>();
            _databaseFactory = Substitute.For <IStoreDatabaseFactory>();
            _mb = Substitute.For <IMessageBox>();

            _db.TableItem.SearchItems(Arg.Any <string>()).Returns(new List <Item>());

            _uut = new ItemViewModel(_db, _mb);
        }
        public void SetUp()
        {
            _dbFactory = Substitute.For <IStoreDatabaseFactory>();
            _db        = Substitute.For <IDatabaseService>();
            _mb        = Substitute.For <IMessageBox>();
            List <ItemGroup> testList = new List <ItemGroup>();

            testList.Add(new ItemGroup("test", 0, 0));
            _db.TableItemGroup.SearchItemGroups(Arg.Any <string>())
            .Returns(testList);
            _uut = new ItemGroupViewModel(_db, _mb);
        }
        public void Setup()
        {
            _dbFactory = Substitute.For <IStoreDatabaseFactory>();

            _db = Substitute.For <IDatabaseService>();

            _fileBrowseService = Substitute.For <IBrowseFileService>();
            _fileBrowseService.OpenFileDialog().Returns(true);
            _fileBrowseService.FileName.Returns("FileName");

            _uut = new FloorplanViewModel(_db, _fileBrowseService);
        }