public void TestInitialize()
        {
            _contextBuilder = ContextBuilderFactory.CreateContextBuilder()
                              .WithData <MyData>()
                              .RegisterAttributes(TestContext);

            _target = _contextBuilder.GetInstance <MyApplicationService>();
        }
Exemplo n.º 2
0
        public TestUsersService(ITestOutputHelper output)
        {
            var testContext = new TestContext(output);

            _contextBuilder = ContextBuilderFactory.CreateContextBuilder()
                              .RegisterAttributes(testContext)
                              .Build();
            _target = _contextBuilder.GetHttpClient();
        }
Exemplo n.º 3
0
 public void TestInitialize()
 {
     _contextBuilder                        = ContextBuilderFactory.CreateContextBuilder();
     _dataWithOneMockReader                 = _contextBuilder.GetInstance <DataWithOneMockReader>();
     _dataWithTwoMocksReader                = _contextBuilder.GetInstance <DataWithTwoMocksReader>();
     _dataWithOneStateHandlerReader         = _contextBuilder.GetInstance <DataWithOneStateHandlerReader>();
     _dataWithTwoStateHandlersReader        = _contextBuilder.GetInstance <DataWithTwoStateHandlersReader>();
     _dataWithOneMockAndStateHandlersReader = _contextBuilder.GetInstance <DataWithOneMockAndOneStateHandlerReader>();
 }