public PutCategoryService( IDefaultDbContext context, CategoryValidator entityValidator, PutCategorySpecificationsValidator domainValidator ) : base(entityValidator, domainValidator) { Context = context; }
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); }