public IndexModel( ILogger <IndexModel> logger, JsonFileService taskService, UserService userService) { _logger = logger; jsonFileService = taskService; _userService = userService; }
public MainWindow() { InitializeComponent(); JsonFileService.InitializeAllFiles(); viewModel = new BotViewModel(); this.DataContext = viewModel; Pages.Settings.AppearanceViewModel settings = new Pages.Settings.AppearanceViewModel(); settings.SetThemeAndColor(UserInterface.Default.SelectedThemeDisplayName, UserInterface.Default.SelectedThemeSource, UserInterface.Default.SelectedAccentColor, UserInterface.Default.SelectedFontSize); }
public PhoneBookViewModel(IDialogService dialogService, JsonFileService jsonFileService, XMLFileService xmlfileService) { this._dialogService = dialogService; this._jsonFileService = jsonFileService; this._xmlfileService = xmlfileService; PhoneBook = new ObservableCollection <Contact> { new Contact { NamePatron = "George", SurName = "Higgs", PhoneNumber = "89313074443" }, new Contact { NamePatron = "Iya", SurName = "Mironova", PhoneNumber = "89214782812", Email = "*****@*****.**" }, new Contact { NamePatron = "Igor", SurName = "Lapin", PhoneNumber = "89216759423", Email = "*****@*****.**" } }; }
static void Main(string[] args) { IJsonFileService jsonFileService = new JsonFileService(); IJsonToEntityConverter jsonToEntityConverter = new JsonToEntityConverter(); IEntityComparerService <Entities.Station> stationComparerService = new StationComparerService(); IEntityComparerService <Entities.Ride> rideComparerService = new RideComparerService(stationComparerService); IEntityComparerService <Entities.Route> routeComparerService = new RouteComparerService(rideComparerService); IEntityContextComparerService entityContextComparerService = new EntityContextComparerService(routeComparerService); IAuditManagerService auditManagerService = new AuditManagerService(jsonFileService, jsonToEntityConverter, entityContextComparerService); string originalJsonPath = @"Jsons\Original.json"; string updatedJsonPath = @"Jsons\Updated.json"; string outputJsonPath = @"Jsons\OutputAudit.json"; auditManagerService.CompareRoutesAndGetAudit(originalJsonPath, updatedJsonPath, outputJsonPath); }
public SubjectsController(JsonFileService jsonFileService) { this.jsonFileService = jsonFileService; }
public AddModel(ILogger <AddModel> logger, JsonFileService jsonFileService) { this.jsonFileService = jsonFileService; _logger = logger; }
public TasksController(JsonFileService jsonFileService) { this.jsonFileService = jsonFileService; }
public FoodsController(JsonFileService foodService) { this.FoodService = foodService; }
public IndexModel(ILogger <IndexModel> logger, JsonFileService productService) { _logger = logger; ProductService = productService; }
public UpdateModel(ILogger <UpdateModel> logger, JsonFileService jsonFileService) { this.jsonFileService = jsonFileService; _logger = logger; }
public ProjectsController(JsonFileService projectService) { ProjectService = projectService; }
public IndexModel(ILogger <IndexModel> logger, JsonFileService foodService) { _logger = logger; FoodService = foodService; }