Exemplo n.º 1
0
 public virtual void Setup()
 {
     GlobalStatisticStorage = new GlobalServerStatisticStorage();
     ServerStatisticStorage = new ServerStatisticStorage(GlobalStatisticStorage);
     PlayerStatisticStorage = new PlayerStatisticStorage();
     ReportStorage          = new ReportStorage(ServerStatisticStorage, PlayerStatisticStorage);
     DocumentStore          = RavenDbStore.GetStore(new ApplicationOptions
     {
         InMemory    = true,
         UnitTesting = true
     });
     DataRepository   = new RavenDbStorage(DocumentStore);
     StatisticStorage = new DataStatisticStorage(
         DataRepository,
         GlobalStatisticStorage,
         ServerStatisticStorage,
         PlayerStatisticStorage,
         ReportStorage);
 }
Exemplo n.º 2
0
 public GetStatisticModule(IDataStatisticStorage storage)
 {
     dataStatisticStorage = storage;
 }
Exemplo n.º 3
0
 public UpdateStatisticModule(IDataStatisticStorage storage)
 {
     dataStatisticStorage = storage;
 }