public void StartTest()
        {
            var dataProvider = GetDataProvider();

            dataProvider.DeleteEverything();
            SecurityActivityQueue._setCurrentExecutionState(new CompletionState());
            Context.StartTheSystem(dataProvider, new DefaultMessageProvider());
            __context = new Context(TestUser.User1);
        }
Exemple #2
0
        private Context GetContextAndStartTheSystem(LockRecursionUser currentUser)
        {
            SecurityActivityQueue._setCurrentExecutionState(new CompletionState());
            MemoryDataProvider.LastActivityId = 0;
            Context.StartTheSystem(new MemoryDataProvider(DatabaseStorage.CreateEmpty()), new DefaultMessageProvider(), null);
            var context = new Context(currentUser);

            CreatePlayground(context);
            return(context);
        }
Exemple #3
0
 private Context GetContext(LockRecursionUser currentUser)
 {
     SecurityActivityQueue._setCurrentExecutionState(new CompletionState());
     MemoryDataProvider.LastActivityId = 0;
     return(new Context(currentUser));
 }
Exemple #4
0
 private void StartTheSystem()
 {
     SecurityActivityQueue._setCurrentExecutionState(new CompletionState());
     MemoryDataProvider._lastActivityId = 0;
     Context.StartTheSystem(new MemoryDataProvider(DatabaseStorage.CreateEmpty()), new DefaultMessageProvider());
 }
Exemple #5
0
 internal static Context GetEmptyContext(TestUser currentUser)
 {
     SecurityActivityQueue._setCurrentExecutionState(new CompletionState());
     MemoryDataProvider.LastActivityId = 0;
     return(GetEmptyContext(currentUser, new MemoryDataProvider(DatabaseStorage.CreateEmpty())));
 }