Exemplo n.º 1
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 }
     };
 }
Exemplo n.º 2
0
 public void Initialize()
 {
     ArticleService      = new ArticleServiceFake();
     NotificationService = new QPNotificationServiceFake();
     FieldService        = new FieldServiceFake();
     FreezeService       = new FreezeServiceFake();
     ValidationService   = new ValidationServiceFake();
     ProductService      = new ProductServiceFake {
         Content = new Content()
         {
             ContentId = ContentId
         }
     };
     Transaction = null;
     Logger      = new LoggerFake();
     Context     = new ActionContext();
     InitializeAction();
 }