예제 #1
0
 public PutCustomerService(
     IDefaultDbContext context,
     CustomerValidator entityValidator,
     PutCustomerSpecificationsValidator domainValidator
     ) : base(entityValidator, domainValidator)
 {
     Context = context;
 }
        private PutCustomerService GetMockedPutCustomerService()
        {
            var mockedDbContext = MockDefaultHelper
                                  .GetMockedDbContext()
                                  .AddMockedCustomers();

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

            var mockedCustomerValidator = new CustomerValidator();

            var mockedPutCustomerSpecificationsValidator = new PutCustomerSpecificationsValidator();

            var mockedPutCustomerService = new PutCustomerService(
                mockedDbContext.Object,
                mockedCustomerValidator,
                mockedPutCustomerSpecificationsValidator);

            return(mockedPutCustomerService);
        }