Exemplo n.º 1
0
 public PatchOrderService(
     IStockWalletDbContext context,
     OrderValidator entityValidator,
     PatchOrderSpecificationsValidator domainValidator
     ) : base(entityValidator, domainValidator)
 {
     Context = context;
 }
Exemplo n.º 2
0
        private PatchOrderService GetMockedPatchOrderService()
        {
            var mockedDbContext = MockDefaultHelper
                                  .GetMockedDbContext()
                                  .AddMockedOrders();

            var mockedDbContextQuery = MockDefaultHelper
                                       .GetMockedDbContext()
                                       .AddMockedOrders();

            var mockedOrderValidator = new OrderValidator();

            var mockedPatchOrderSpecificationsValidator = new PatchOrderSpecificationsValidator();

            var mockedPatchOrderService = new PatchOrderService(
                mockedDbContext.Object,
                mockedOrderValidator,
                mockedPatchOrderSpecificationsValidator
                );

            return(mockedPatchOrderService);
        }