public CustomerInformationModel()
 {
     _aircraftRepo = SimpleIoc.Default.GetInstance<IAircraftRepository>();
     _upgradeRepo = SimpleIoc.Default.GetInstance<IUpgradeRepository>();
     _customerRepo = SimpleIoc.Default.GetInstance<ICustomerRepository>();
     _configurationRepo= SimpleIoc.Default.GetInstance<ICustomerConfigurationRespository>();
     _configurationFileManager = new ConfigurationFileManager();
     if (! SimpleIoc.Default.IsRegistered<IConfiguration>())
     {
         var configuration = new Configuration("id", new List<IUpgradeItem>(), new List<IAircraft>(),
                                               System.DateTime.Now.ToString(), ConfigurationState.IN_PROGRESS, null, _customerRepo.GetCustomerById("emirates"));
         SimpleIoc.Default.Register<IConfiguration>(() => configuration);
     }
 }
 public async void WriteConfigurationToFile(Configuration configuration)
 {
     var jsonText = _jsonHelper.GetJsonFromConfiguration(configuration);
     var file = await _dataFolder.CreateFileAsync(configuration.ConfigurationDate + _fileExtension);
     await FileIO.WriteTextAsync(file, jsonText);
 }