Esempio n. 1
0
        public void Setup()
        {
            var settings        = new MemstateSettings().WithInmemoryStorage();
            var storageProvider = settings.CreateStorageProvider();
            var model           = new ModelWithOverloads();
            var engine          = new EngineBuilder(settings, storageProvider)
                                  .Build <IModelWithOverloads>(model);
            var client = new LocalClient <IModelWithOverloads>(engine);

            _db = client.GetDispatchProxy();
        }
Esempio n. 2
0
        public void Setup()
        {
            var cfg = Config.Reset();

            cfg.UseInMemoryFileSystem();

            var model  = new ModelWithOverloads();
            var engine = new EngineBuilder()
                         .Build <IModelWithOverloads>(model).Result;
            var client = new LocalClient <IModelWithOverloads>(engine);

            _db = client.GetDispatchProxy();
        }