コード例 #1
0
        public void Initialize()
        {
            var resolver = Substitute.For <IServiceLocator>();

            resolver.GetInstance <DummyContext>().Returns(new DummyContext());
            _manager = new DummyScopeManager(resolver);
        }
コード例 #2
0
        public UnitOfWorkScopeManagerUnitTests()
        {
            var resolver = Substitute.For <IServiceLocator>();

            resolver.GetInstance <DummyContext>().Returns(new DummyContext());
            _manager = new DummyScopeManager(resolver);
        }