public CourseScheduleDatabaseService( ApplicationDbContext context, IImportDataExcelService importDataExcelService, ILogger <CourseScheduleDatabaseService> logger) { _context = context; _importDataExcelService = importDataExcelService; _logger = logger; }
public CourseScheduleFileServiceTests() { var fixture = new Fixture(); fixture.Customize(new AutoMoqCustomization()); _mapper = new MapperConfiguration(c => c.AddProfile <AutoMapperConfiguration>()).CreateMapper(); _mockMapper = fixture.Freeze <Mock <IMapper> >(); _logger = fixture.Freeze <Mock <ILogger <ImportDataExcelService> > >(); _importDataExcelService = new ImportDataExcelService(_logger.Object); }
public CourseScheduleFileService( IImportDataExcelService importDataExcelService) { _importDataExcelService = importDataExcelService ?? throw new ArgumentNullException(nameof(importDataExcelService)); }