Exemple #1
0
 public void Constructor_TransactionFactoryIsNull_ThrowException()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         var action = new ActionBaseFake(ArticleService, FieldService, ProductService, null);
     });
 }
Exemple #2
0
 public void Initialize()
 {
     ArticleService     = new ArticleServiceFake();
     FieldService       = new FieldServiceFake();
     ProductService     = new ProductServiceFake();
     Logger             = new LoggerFake();
     TransactionFactory = () => new TransactionFake();
     Action             = new ActionBaseFake(ArticleService, FieldService, ProductService, TransactionFactory);
     Context            = new ActionContext {
         ContentItemIds = new[] { ContentItemId }
     };
 }