Esempio n. 1
0
 public void SetUp()
 {
     var factory =
         new PomonaJsonSerializerFactory(new ClientSerializationContextProvider(this.clientTypeMapper,
             Substitute.For<IPomonaClient>()));
     this.deserializer = factory.GetDeserializer();
 }
Esempio n. 2
0
 public PomonaSessionFactory(TypeMapper typeMapper, Route routes, IRouteActionResolver actionResolver)
 {
     TypeMapper = typeMapper;
     ActionResolver = actionResolver;
     Routes = routes;
     this.pipeline = new DefaultRequestProcessorPipeline();
     this.serializerFactory = new PomonaJsonSerializerFactory();
 }