public void AddExistingArticle() { var _articleCache = new SimulationCore.Types.ArticleCache(connectionString: _dbConnectionString); var requestArticle = _masterDBContext.Articles.First(x => x.Name == "Schrauben"); var article = _articleCache.GetArticleById(id: requestArticle.Id, transitionFactor: 3); var article2 = _articleCache.GetArticleById(id: requestArticle.Id, transitionFactor: 3); Assert.Equal(expected: article2.Name, actual: article.Name); }
public void AddExistingArticle() { _contextDataBase = Dbms.GetNewMasterDataBase(); var _articleCache = new SimulationCore.Types.ArticleCache(connectionString: _contextDataBase.ConnectionString); var article = _articleCache.GetArticleById(id: 10772, transitionFactor: 3); var article2 = _articleCache.GetArticleById(id: 10772, transitionFactor: 3); Assert.Equal(expected: article2.Name, actual: article.Name); }
public void AddArticle() { var _articleCache = new SimulationCore.Types.ArticleCache(connectionString: _dbConnectionString); var requestArticle = _masterDBContext.Articles.First(); var article = _articleCache.GetArticleById(id: requestArticle.Id, transitionFactor: 3); Assert.Equal(actual: article.Name, expected: "Tisch"); }
public void AddArticle() { var _articleCache = new SimulationCore.Types.ArticleCache(connectionString: _contextDataBase.ConnectionString); var article = _articleCache.GetArticleById(id: 10081, transitionFactor: 3); Assert.Equal(actual: article.Name, expected: "Dump-Truck"); }
public void AddArticleWithoutOperation() { _contextDataBase = Dbms.GetNewMasterDataBase(); InitializeTestModel(); var _articleCache = new SimulationCore.Types.ArticleCache(connectionString: _contextDataBase.ConnectionString); var article = _articleCache.GetArticleById(id: 10456, transitionFactor: 3); Assert.Equal(actual: article.Name, expected: "Wheel"); }