4 private void AddServices()
6 Services.AddDbContext<DataContext>();
7 Services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());
8 Services.AddScoped<StateService>();
9 Services.AddScoped<AlertService>();
11 Services.AddScoped<CurrencyViewModel>();
12 Services.AddScoped<ProductViewModel>();
13 Services.AddScoped<ModuleViewModel>();
14 Services.AddScoped<SegmentViewModel>();
15 Services.AddScoped<MainSegmentViewModel>();
16 Services.AddScoped<PriceListViewModel>();
17 Services.AddScoped<UserViewModel>();
18 Services.AddScoped<CustomerViewModel>();
19 Services.AddScoped<PriorityViewModel>();
20 Services.AddScoped<RegionViewModel>();
21 Services.AddScoped<PriceElementViewModel>();
22 Services.AddScoped<AgreementViewModel>();
23 Services.AddScoped<AgreementElementViewModel>();
24 Services.AddScoped<ModuleLevelViewModel>();
28 public void RenderIndexPage_WithThreeComponents()
35 page.FindComponent<UserTable>();
36 page.FindComponent<LeaderBoard>();
37 page.FindComponent<SalesInfo>();