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); }
public void Initialize(ModulesDependencies dependencies) { _services = dependencies.Services; }