Example #1
0
 public MockSessionInstanceProvider(
     MockContractDescriptor contract,
     Mock <IInstanceProviderActions> actions)
     : this(
         contract,
         actions,
         new MemorySessionFactory(
             new BoltServerOptions { SessionHeader = SessionHeader },
             new ServerSessionHandlerInternal(
                 actions,
                 new BoltServerOptions
 {
     SessionHeader = SessionHeader
 })))
 {
 }
Example #2
0
 private MockSessionInstanceProvider(MockContractDescriptor contract, Mock <IInstanceProviderActions> actions, MemorySessionFactory factory) : base(factory)
 {
     _factory = factory;
     _actions = actions;
 }
Example #3
0
 protected StatefullinstanceProviderTestBase()
 {
     Contract = new MockContractDescriptor();
     Mock     = new Mock <IInstanceProviderActions>(MockBehavior.Loose);
     Subject  = CreateSubject();
 }