Exemplo n.º 1
0
        public ViewModelSale(ISaleValidationRule saleValidationRule, IProductValidationRule productValidationRule, IMainWindowController mainWindowController, IFrontServiceClient frontServiceClient, Seller seller, User user)
        {
            this.validatablePropertyCollection.Add("Product");
            this.validatablePropertyCollection.Add("Count");
            this.validatablePropertyCollection.Add("Datetime");

            this.saleValidationRule    = saleValidationRule;
            this.productValidationRule = productValidationRule;
            this.mainWindowController  = mainWindowController;
            this.frontServiceClient    = frontServiceClient;
            this.seller = seller;
            this.user   = user;
        }
Exemplo n.º 2
0
 public AddSaleValidationActivity(ISaleValidationRule saleValidationRule)
 {
     this.saleValidationRule = saleValidationRule;
 }