AerialForWindows.Updates.UpdateManager.InitUpdateManagerForTests C# (CSharp) Method

InitUpdateManagerForTests() public static method

public static InitUpdateManagerForTests ( ) : void
return void
        public static void InitUpdateManagerForTests()
        {
            if (_instance != null) {
                throw new InvalidOperationException("Instance is already initialized.");
            }
            var releaseProvider = new TestReleaseProvider();
            _instance = new UpdateManager(releaseProvider, new Version(0, 1));
        }