Inegrate calendi in meeting Schedule
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

  1. using Abp.AspNetCore;
  2. using Abp.AspNetCore.TestBase;
  3. using Abp.Modules;
  4. using Abp.Reflection.Extensions;
  5. using MeetingSchedule.EntityFrameworkCore;
  6. using MeetingSchedule.Web.Startup;
  7. using Microsoft.AspNetCore.Mvc.ApplicationParts;
  8. namespace MeetingSchedule.Web.Tests
  9. {
  10. [DependsOn(
  11. typeof(MeetingScheduleWebMvcModule),
  12. typeof(AbpAspNetCoreTestBaseModule)
  13. )]
  14. public class MeetingScheduleWebTestModule : AbpModule
  15. {
  16. public MeetingScheduleWebTestModule(MeetingScheduleEntityFrameworkModule abpProjectNameEntityFrameworkModule)
  17. {
  18. abpProjectNameEntityFrameworkModule.SkipDbContextRegistration = true;
  19. }
  20. public override void PreInitialize()
  21. {
  22. Configuration.UnitOfWork.IsTransactional = false; //EF Core InMemory DB does not support transactions.
  23. }
  24. public override void Initialize()
  25. {
  26. IocManager.RegisterAssemblyByConvention(typeof(MeetingScheduleWebTestModule).GetAssembly());
  27. }
  28. public override void PostInitialize()
  29. {
  30. IocManager.Resolve<ApplicationPartManager>()
  31. .AddApplicationPartsIfNotAddedBefore(typeof(MeetingScheduleWebMvcModule).Assembly);
  32. }
  33. }
  34. }