Пример #1
0
 public IndexModel(
     ILogger <IndexModel> logger,
     JsonFileService taskService,
     UserService userService)
 {
     _logger         = logger;
     jsonFileService = taskService;
     _userService    = userService;
 }
Пример #2
0
        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);
        }
Пример #3
0
 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 = "*****@*****.**"
         }
     };
 }
Пример #4
0
        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);
        }
Пример #5
0
 public SubjectsController(JsonFileService jsonFileService)
 {
     this.jsonFileService = jsonFileService;
 }
Пример #6
0
 public AddModel(ILogger <AddModel> logger, JsonFileService jsonFileService)
 {
     this.jsonFileService = jsonFileService;
     _logger = logger;
 }
Пример #7
0
 public TasksController(JsonFileService jsonFileService)
 {
     this.jsonFileService = jsonFileService;
 }
 public FoodsController(JsonFileService foodService)
 {
     this.FoodService = foodService;
 }
Пример #9
0
 public IndexModel(ILogger <IndexModel> logger, JsonFileService productService)
 {
     _logger        = logger;
     ProductService = productService;
 }
Пример #10
0
 public UpdateModel(ILogger <UpdateModel> logger, JsonFileService jsonFileService)
 {
     this.jsonFileService = jsonFileService;
     _logger = logger;
 }
Пример #11
0
 public ProjectsController(JsonFileService projectService)
 {
     ProjectService = projectService;
 }
Пример #12
0
 public IndexModel(ILogger <IndexModel> logger, JsonFileService foodService)
 {
     _logger     = logger;
     FoodService = foodService;
 }