Beispiel #1
0
        protected ComponentTestBase()
        {
            AllEmployees      = _fixture.CreateMany <Employee>(3).ToList();
            FilteredEmployees = _fixture.CreateMany <Employee>(2).ToList();
            _employeeProvider.GetAll().Returns(AllEmployees);
            _employeeProvider.Filter(Arg.Any <string>(), Arg.Any <Filter>()).Returns(FilteredEmployees);

            _host.AddService(_employeeProvider);
            Component = _host.AddComponent <Index>();
        }