Ejemplo n.º 1
0
 public DatabaseUnitOfWorkTest()
 {
     DependencyInjector.RegisterServices();
     DependencyInjector.AddDbContextInMemoryDatabase <DatabaseContext>();
     Database = DependencyInjector.GetService <IDatabaseUnitOfWork>();
     SeedDatabase();
 }
Ejemplo n.º 2
0
 public static void AddDependencyInjection(this IServiceCollection services)
 {
     DependencyInjector.RegisterServices(services);
     DependencyInjector.AddDbContextInMemoryDatabase <DatabaseContext>();
 }
Ejemplo n.º 3
0
 public DomainTest()
 {
     DependencyInjector.RegisterServices();
     DependencyInjector.AddDbContextInMemoryDatabase <DatabaseContext>();
     UserDomain = DependencyInjector.GetService <IUserDomain>();
 }
 public ApplicationTest()
 {
     DependencyInjector.RegisterServices();
     DependencyInjector.AddDbContextInMemoryDatabase <DatabaseContext>();
     UserApplication = DependencyInjector.GetService <IUserApplication>();
 }