Esempio n. 1
0
        public void Should_create_new_article_that_gets_an_automatically_assigned_article_no()
        {
            // Arrange
            ZUsrFields.Initialize(_vismaConnection.Open());
            var articleManager = new ArticleManager(_vismaConnection);

            var articles = new List <ArticleForCreate>
            {
                new ArticleForCreate {
                    Name = "PIM Integration Test", PimSku = "PIM48", PostingTemplateNo = 1, PriceCalcMethodsNo = 1, StockProfileNo = 1
                },
                new ArticleForCreate {
                    Name = "PIM Integration Test", PimSku = "PIM49", PostingTemplateNo = 1, PriceCalcMethodsNo = 1, StockProfileNo = 1
                }
            };

            // Act
            var createdArticles = articleManager.CreateArticles(articles);

            // Assert
            Assert.That(createdArticles.Count, Is.EqualTo(2));
        }
Esempio n. 2
0
 private static void InitializeCustomVismaFields(IVismaConnection vismaConnection)
 {
     ZUsrFields.Initialize(vismaConnection.Open());
 }