public void Constructor_TransactionFactoryIsNull_ThrowException() { Assert.Throws <ArgumentNullException>(() => { var action = new ActionBaseFake(ArticleService, FieldService, ProductService, null); }); }
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 } }; }