public void TestInitialize()
        {
            DependencyHelper.Initialize();
            IUnityContainer container = DependencyHelper.Container;

            _mockDbContext = new Mock <DatabaseContext>();
            container.RegisterInstance <DatabaseContext>(_mockDbContext.Object);
            _employeeController = container.Resolve <EmployeesController>();
            _fakeEmployeeDbSet  = new FakeEmployeeSet();
        }
示例#2
0
 private static void InitializeDependencyInjectionContainer()
 {
     DependencyHelper.Initialize();
 }
 public static void Init()
 {
     DependencyHelper.Initialize();
 }