コード例 #1
0
ファイル: ActionTestsBase.cs プロジェクト: QuantumArt/QA.DPC
 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();
 }
コード例 #2
0
 protected override void InitializeAction()
 {
     NotificationService = new QPNotificationServiceFake();
     XmlProductService   = new XmlProductServiceFake();
     Action = new PublishAction(ArticleService, FieldService, ProductService, CreateTransaction, NotificationService, XmlProductService, FreezeService, ValidationService);
 }