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(); }
protected override void InitializeAction() { NotificationService = new QPNotificationServiceFake(); XmlProductService = new XmlProductServiceFake(); Action = new PublishAction(ArticleService, FieldService, ProductService, CreateTransaction, NotificationService, XmlProductService, FreezeService, ValidationService); }