Exemplo n.º 1
0
 public PutCategoryService(
     IDefaultDbContext context,
     CategoryValidator entityValidator,
     PutCategorySpecificationsValidator domainValidator
     ) : base(entityValidator, domainValidator)
 {
     Context = context;
 }
Exemplo n.º 2
0
        private PutCategoryService GetMockedPutCategoryService()
        {
            var mockedDbContext = MockDefaultHelper
                                  .GetMockedDbContext()
                                  .AddMockedCategories();

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

            var mockedCategoryValidator = new CategoryValidator();

            var mockedPutCategorySpecificationsValidator = new PutCategorySpecificationsValidator();

            var mockedPutCategoryService = new PutCategoryService(
                mockedDbContext.Object,
                mockedCategoryValidator,
                mockedPutCategorySpecificationsValidator);

            return(mockedPutCategoryService);
        }