public void Setup()
 {
     _packingSlip      = new PackingSlip();
     _membership       = new MembershipService();
     _commisionService = new CommisionService();
     _orderService     = new OrderProcessingService(_packingSlip, _membership, _commisionService);
 }
Example #2
0
        public static void ClassInit(TestContext context)
        {
            mockIShippingService = new Mock <IShipping>();
            mockIPackingSlipRepo = new Mock <IPackingSlipRepo>();

            packingSlipService = new PackingSlipService(
                mockIShippingService.Object,
                mockIPackingSlipRepo.Object
                );
        }
Example #3
0
 /// <summary>
 /// Constructor to Inject Service Dependecies
 /// </summary>
 /// <param name="agent"></param>
 /// <param name="department"></param>
 /// <param name="emailNotification"></param>
 /// <param name="membership"></param>
 /// <param name="membershipUpgrade"></param>
 /// <param name="order"></param>
 /// <param name="packingSlip"></param>
 /// <param name="packingSlipRoyaltyDep"></param>
 /// <param name="payment"></param>
 /// <param name="product"></param>
 /// <param name="shipping"></param>
 /// <param name="user"></param>
 /// <param name="videoSubscription"></param>
 public PaymentController(IAgent agent, IDepartment department, IEmailNotification emailNotification,
                          IMembership membership, IMembershipUpgrade membershipUpgrade, IOrder order, IPackingSlip packingSlip,
                          IPackingSlipRoyaltyDep packingSlipRoyaltyDep, IPayment payment, IProduct product, IShipping shipping,
                          IUser user, IVideoSubscription videoSubscription)
 {
     _agent                 = agent;
     _department            = department;
     _emailNotification     = emailNotification;
     _membership            = membership;
     _membershipUpgrade     = membershipUpgrade;
     _order                 = order;
     _packingSlip           = packingSlip;
     _packingSlipRoyaltyDep = packingSlipRoyaltyDep;
     _payment               = payment;
     _product               = product;
     _shipping              = shipping;
     _user = user;
     _videoSubscription = videoSubscription;
 }
Example #4
0
 public VideoSubscriptionService(IPackingSlip packingSlip, IVideoSubscriptionRepo videoSubscriptionRepo)
 {
     _packingSlip           = packingSlip;
     _videoSubscriptionRepo = videoSubscriptionRepo;
 }
Example #5
0
 public OrderProcessingService(IPackingSlip packingSlip, IMembership membership, ICommisionService commisionService)
 {
     _packingSlip      = packingSlip;
     _membership       = membership;
     _commisionService = commisionService;
 }
Example #6
0
 public BookRule()
 {
     _packingSlip = new Operations.Operations();
     _commision   = new Operations.Operations();
 }
 public PhysicalProductRule()
 {
     _packingSlip = new Operations.Operations();
     _commision   = new Operations.Operations();
 }