Beispiel #1
0
        public SendingRestCall()
        {
            var containerConfig = ContainerConfiguration.CreateFromAssembly(typeof(SendingRestCall).Assembly);

            _integrationTestContext = IntegrationTestContextBuilderFactory
                                      .StartBuilding(containerConfig)
                                      .Build();
        }
        /// <summary>
        /// Creates a context with the given state
        /// </summary>
        /// <param name="orgCode"></param>
        /// <returns></returns>
        protected ContextAndStateContainer <TState> CreateTestContext <TState>(IIntegrationTestContext context) where TState : TestState
        {
            var state = RestoreState <TState>();

            context.Initialize(DatabaseName);

            state.LoadStateEntities();
            return(new ContextAndStateContainer <TState>(context, state));
        }
 public ContextAndStateContainer(IIntegrationTestContext context, TState state)
 {
     State   = state;
     Context = context;
 }