Exemplo n.º 1
0
        public void load_modules()
        {
            // Setup
            var viewModel = new ModulesViewModel();
            var dependencies = new ModulesDependencies() { Services = new MockModulesServices() };
            viewModel.Initialize(dependencies);

            // Test
            var modules = viewModel.LoadModules();

            // Verify
            Assert.IsTrue(modules != null);
        }
Exemplo n.º 2
0
 public void Initialize(ModulesDependencies dependencies)
 {
     _services = dependencies.Services;
 }