Beispiel #1
0
 public static IConfigurationFileManagementSystem GetInstance()
 {
     if (instance == null)
     {
         if (App.ServiceType == ServiceType.Production)
         {
             instance = new ConfigurationFileManagementSystem();
         }
     }
     return(instance);
 }
Beispiel #2
0
        public void SetupTest()
        {
            taskTime      = -1;
            breakTime     = -1;
            repeatTime    = -1;
            longBreakTime = -1;

            App.ServiceType = ServiceType.Test;
            configManager   = new ConfigManager();
            ConfigurationFileManagementSystem.ResetInstance();
            configurationFileManager = Substitute.For <IConfigurationFileManagementSystem>();
            ConfigurationFileManagementSystem.SetInstance(configurationFileManager);
        }
Beispiel #3
0
 public static void ResetInstance()
 {
     instance = null;
 }
Beispiel #4
0
 public static void SetInstance(IConfigurationFileManagementSystem configurationFileManager)
 {
     instance = configurationFileManager;
 }