internal TrackConverter(IUserConverter userConverter, ITagListConverter tagListConverter, IApplicationConverter applicationConverter, IDateTimeConverter dateTimeConverter) { this.userConverter = userConverter; this.tagListConverter = tagListConverter; this.applicationConverter = applicationConverter; this.dateTimeConverter = dateTimeConverter; }
internal PlaylistConverter(IUserConverter userConverter, ITrackConverter trackConverter, ITagListConverter tagListConverter, IDateTimeConverter dateTimeConverter) { this.userConverter = userConverter; this.trackConverter = trackConverter; this.tagListConverter = tagListConverter; this.dateTimeConverter = dateTimeConverter; }
public CSVCandleDataWriter(string instrument, string timeframe, string outputFolder, string filename, string delimiter, bool formatDecimal, string dateTimeSeparator, bool writeIncompleteCandles, string timezone, IDateTimeConverter dateTimeConverter, bool addHeader) { mInstrument = instrument; mTimeframe = timeframe; mWriteIncompleteCandles = writeIncompleteCandles; mFormatDecimal = formatDecimal; mAddHeader = addHeader; mIsFirstLine = true; //mTimezone = convToForexConnectZone(timezone); mDateTimeConverter = dateTimeConverter; if (!Directory.Exists(outputFolder)) { Directory.CreateDirectory(outputFolder); } // TODO: folder ends with "\" string path = string.Format(@"{0}\{1}.csv", outputFolder, filename); if (!File.Exists(path)) { using (FileStream fs = new FileStream(path, FileMode.Create, FileAccess.ReadWrite)) { fs.Close(); } } mDelimiter = delimiter; mWriter = new CsvFileWriter(path, mDelimiter); mFormatter = new DateFormatter(dateTimeSeparator); }
internal PlaylistConverter(IUserConverter userConverter, ITrackConverter trackConverter, ITagListConverter tagListConverter, IDateTimeConverter dateTimeConverter) { this.userConverter = userConverter; this.trackConverter = trackConverter; this.tagListConverter = tagListConverter; this.dateTimeConverter = dateTimeConverter; }
public GetAggregatePriceQueryHandler( IPriceRepository priceRepository, IDateTimeConverter dateTimeConverter) { this.priceRepository = priceRepository; this.dateTimeConverter = dateTimeConverter; }
internal TrackConverter(IUserConverter userConverter, ITagListConverter tagListConverter, IApplicationConverter applicationConverter, IDateTimeConverter dateTimeConverter) { this.userConverter = userConverter; this.tagListConverter = tagListConverter; this.applicationConverter = applicationConverter; this.dateTimeConverter = dateTimeConverter; }
public ResultParser(IDateTimeConverter dateTimeConverter) { if (dateTimeConverter == null) { throw new ArgumentNullException(nameof(dateTimeConverter)); } _dateTimeConverter = dateTimeConverter; }
public GetAveragePriceQueryHandler( IPriceRepository priceRepository, IGetAveragePriceSpecification getAveragePriceSpecification, IDateTimeConverter dateTimeConverter) { this.priceRepository = priceRepository; this.getAveragePriceSpecification = getAveragePriceSpecification; this.dateTimeConverter = dateTimeConverter; }
public CategoriesController( UserManager <ApplicationUser> userManager, ICategoriesService service, IQuizzesService quizService, IDateTimeConverter dateTimeConverter) { this.userManager = userManager; this.service = service; this.quizService = quizService; this.dateTimeConverter = dateTimeConverter; }
public StudentsController( UserManager <ApplicationUser> userManager, IResultsService resultService, IEventsService eventsService, IDateTimeConverter dateTimeConverter) { this.userManager = userManager; this.resultService = resultService; this.eventsService = eventsService; this.dateTimeConverter = dateTimeConverter; }
public GroupsController( IGroupsService service, IEventsService eventService, IUsersService userService, IDateTimeConverter dateTimeConverter, UserManager <ApplicationUser> userManager) { this.service = service; this.eventService = eventService; this.userService = userService; this.dateTimeConverter = dateTimeConverter; this.userManager = userManager; }
public GetBenchmarkPriceQueryHandler( IGetBenchmarkPriceSpecification specification, IPriceRepository priceRepository, IDateTimeConverter dateTimeConverter, IQuarterCalculator quarterCalculator, ITimeslotCalculator timeslotCalculator) { this.specification = specification; this.priceRepository = priceRepository; this.dateTimeConverter = dateTimeConverter; this.quarterCalculator = quarterCalculator; this.timeslotCalculator = timeslotCalculator; }
internal ActivityResultConverter( ITrackConverter trackConverter, ICommentConverter commentConverter, IUserConverter userConverter, IPlaylistConverter playlistConverter, IDateTimeConverter dateTimeConverter) { this.trackConverter = trackConverter; this.commentConverter = commentConverter; this.userConverter = userConverter; this.playlistConverter = playlistConverter; this.dateTimeConverter = dateTimeConverter; }
public EventsController( IEventsService service, IQuizzesService quizService, IGroupsService groupsService, IDateTimeConverter dateTimeConverter, UserManager <ApplicationUser> userManager, IHubContext <QuizHub> hub) { this.service = service; this.quizService = quizService; this.groupsService = groupsService; this.dateTimeConverter = dateTimeConverter; this.userManager = userManager; this.hub = hub; }
public QuizzesController( UserManager <ApplicationUser> userManager, IQuizzesService quizService, IQuestionsService questionsService, ICategoriesService categoriesService, IDateTimeConverter dateTimeConverter, IHubContext <QuizHub> hub) { this.userManager = userManager; this.quizService = quizService; this.questionsService = questionsService; this.categoriesService = categoriesService; this.dateTimeConverter = dateTimeConverter; this.hub = hub; }
public DbInitializer( ILogger <DbInitializer> logger, AppDbContext dbContext, IDateTimeConverter dateTimeConverter) { this.logger = logger; this.appDbContext = dbContext; this.dateTimeConverter = dateTimeConverter; this.filePath = Path.Combine(AppContext.BaseDirectory, $"Input{Path.DirectorySeparatorChar}data.csv"); if (!File.Exists(this.filePath)) { throw new InvalidOperationException("Input data file doesn't exists"); } }
public DashboardController( IUsersService userService, IEventsService eventService, IGroupsService groupsService, IQuizzesService quizzesService, IDateTimeConverter dateTimeConverter, UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager) { this.userService = userService; this.eventService = eventService; this.groupsService = groupsService; this.quizzesService = quizzesService; this.dateTimeConverter = dateTimeConverter; this.userManager = userManager; this.roleManager = roleManager; }
public ArchiveManager(IArchiveExecutor executor, IDateTimeConverter dateTimeConverter, IArchiveExecutionContextProvider archiveExecutionContextProvider) { if (executor == null) { throw new ArgumentNullException(nameof(executor)); } if (dateTimeConverter == null) { throw new ArgumentNullException(nameof(dateTimeConverter)); } if (archiveExecutionContextProvider == null) { throw new ArgumentNullException(nameof(archiveExecutionContextProvider)); } _executor = executor; _dateTimeConverter = dateTimeConverter; _archiveExecutionContextProvider = archiveExecutionContextProvider; }
public TripsService( IBikeTripsDbRepository <Trip> trips, IUserService users, ICommentsService comments, IUnitOfWork unitOfWork, IDateTimeConverter converter, IIdentifierProvider identifierProvider) { Guard.ThrowIfNull(trips, "Trips"); Guard.ThrowIfNull(users, "Users"); Guard.ThrowIfNull(comments, "Comments"); Guard.ThrowIfNull(unitOfWork, "Unit of work"); Guard.ThrowIfNull(converter, "Converter"); Guard.ThrowIfNull(identifierProvider, "Identifier provider"); this.trips = trips; this.users = users; this.comments = comments; this.unitOfWork = unitOfWork; this.converter = converter; this.identifierProvider = identifierProvider; }
internal WebProfileConverter(IDateTimeConverter dateTimeConverter) { this.dateTimeConverter = dateTimeConverter; }
internal GroupConverter(IUserConverter userConverter, IDateTimeConverter dateTimeConverter) { this.userConverter = userConverter; this.dateTimeConverter = dateTimeConverter; }
public void ConvertStringToDateTime(IDateTimeConverter conv, string input, DateTime output) { var result = conv.ToDateTime(input); Assert.AreEqual(output, result); }
public DateTimeConverterTests() { _converter = new DateTimeConverter(); }
internal CommentConverter(IUserConverter userConverter, IDateTimeConverter dateTimeConverter) { this.userConverter = userConverter; this.dateTimeConverter = dateTimeConverter; }
internal GroupConverter(IUserConverter userConverter, IDateTimeConverter dateTimeConverter) { this.userConverter = userConverter; this.dateTimeConverter = dateTimeConverter; }
public TvMazeContentFormatter(IDateTimeConverter dateConverter) { _dateConverter = dateConverter; }
public GetBenchmarkPriceSpecification( IDateTimeConverter dateTimeConverter) { this.dateTimeConverter = dateTimeConverter; }
public GetAveragePriceSpecification( IDateTimeConverter dateTimeConverter) { this.dateTimeConverter = dateTimeConverter; }
public AveragePriceResultHandler(IDateTimeConverter converter, IPriceModelService priceModelService) { _converter = converter; _priceModelService = priceModelService; }
internal WebProfileConverter(IDateTimeConverter dateTimeConverter) { this.dateTimeConverter = dateTimeConverter; }
public PriceModelService(IDbContextFactory <AppDbContext> dbContextFactory, IDateTimeConverter converter) { _dbContextFactory = dbContextFactory; _converter = converter; }
public BenchmarkResultHandler(IDateTimeConverter converter, IPriceModelService priceModelService) { _converter = converter; _priceModelService = priceModelService; }
public void ConvertDateTimeToString(IDateTimeConverter conv, DateTime input, string output) { var result = conv.ToString(input); Assert.AreEqual(output, result); }
internal ConnectionConverter(IDateTimeConverter dateTimeConverter) { this.dateTimeConverter = dateTimeConverter; }
internal ConnectionConverter(IDateTimeConverter dateTimeConverter) { this.dateTimeConverter = dateTimeConverter; }
internal CommentConverter(IUserConverter userConverter, IDateTimeConverter dateTimeConverter) { this.userConverter = userConverter; this.dateTimeConverter = dateTimeConverter; }