Ejemplo n.º 1
0
        public void load_class()
        {
            // Setup
            var viewModel = new ClassViewModel();
            var dependencies = new ClassDependencies() { Services = new MockClassServices() };
            viewModel.Initialize(dependencies);

            // Test
            var @class = viewModel.LoadClass();

            // Verify
            Assert.IsTrue(@class != null);
        }
Ejemplo n.º 2
0
        public void load_class()
        {
            // Setup
            var viewModel    = new ClassViewModel();
            var dependencies = new ClassDependencies()
            {
                Services = new MockClassServices()
            };

            viewModel.Initialize(dependencies);

            // Test
            var @class = viewModel.LoadClass();

            // Verify
            Assert.IsTrue(@class != null);
        }
Ejemplo n.º 3
0
 public void Initialize(ClassDependencies dependencies)
 {
     _services = dependencies.Services;
 }
Ejemplo n.º 4
0
 public void Initialize(ClassDependencies dependencies)
 {
     _services = dependencies.Services;
 }