[longomatch] Add a simple method to load a config state.



commit 8c2d53262b34915a686ea711fc33c29648b79e35
Author: Julien Moutte <julien fluendo com>
Date:   Tue Apr 14 13:09:52 2015 +0200

    Add a simple method to load a config state.
    
    This is useful for unit tests.

 LongoMatch.Core/Config.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Config.cs b/LongoMatch.Core/Config.cs
index f2abff0..61a9982 100644
--- a/LongoMatch.Core/Config.cs
+++ b/LongoMatch.Core/Config.cs
@@ -86,6 +86,11 @@ namespace LongoMatch
                                Constants.SOFTWARE_NAME.ToLower ());
                }
 
+               public static void LoadState (ConfigState newState)
+               {
+                       state = newState;
+               }
+
                public static void Load ()
                {
                        if (File.Exists (Config.ConfigFile)) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]