public PatchCustomerService(
     IDefaultDbContext context,
     CustomerValidator entityValidator,
     PatchCustomerSpecificationsValidator domainValidator
     ) : base(entityValidator, domainValidator)
 {
     Context = context;
 }
Пример #2
0
        private PatchCustomerService GetMockedPatchCustomerService()
        {
            var mockedDbContext = MockDefaultHelper
                                  .GetMockedDbContext()
                                  .AddMockedCustomers();

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

            var mockedCustomerValidator = new CustomerValidator();

            var mockedPatchCustomerSpecificationsValidator = new PatchCustomerSpecificationsValidator();

            var mockedPatchCustomerService = new PatchCustomerService(
                mockedDbContext.Object,
                mockedCustomerValidator,
                mockedPatchCustomerSpecificationsValidator
                );

            return(mockedPatchCustomerService);
        }