Ejemplo n.º 1
0
        public void Test()
        {
            var testClass = new TestClass();
            IInitializationStrategy strategy = new InitStrategy();
            var initializationManager        = new InitializationManager();

            initializationManager.AddStrategy <TestClass>(strategy);

            var task = initializationManager.InitViewModel(testClass);

            task.Wait();

            Assert.That(testClass.TestOne, Is.EqualTo(777));
            Assert.That(testClass.TestTwo, Is.EqualTo("777"));
            Assert.That(testClass.TestThree, Is.Not.Null);
        }