예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RecipeService"/> class.
 /// </summary>
 /// <param name="contextFactory">Factory for creating <see cref="CookingContext"/> instances.</param>
 /// <param name="cultureProvider">Culture provider for determining which culture enities should belong to.</param>
 /// <param name="mapper">Dependency on database-projection mapper.</param>
 /// <param name="dayService"><see cref="DayService"/> dependency.</param>
 public RecipeService(IContextFactory contextFactory, ICurrentCultureProvider cultureProvider, IMapper mapper, IDayService dayService)
     : base(contextFactory, cultureProvider, mapper)
 {
     this.dayService = dayService;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CRUDService{T}"/> class.
 /// </summary>
 /// <param name="contextFactory">Context factory for creating <see cref="CookingContext"/>.</param>
 /// <param name="cultureProvider">Culture provider for determining which culture enities should belong to.</param>
 /// <param name="mapper">Dependency on database-projection mapper.</param>
 public CRUDService(IContextFactory contextFactory, ICurrentCultureProvider cultureProvider, IMapper mapper)
 {
     ContextFactory       = contextFactory;
     this.cultureProvider = cultureProvider;
     Mapper = mapper;
 }