Exemplo n.º 1
0
        public void StartTest()
        {
            var dataProvider = GetDataProvider();

            dataProvider.DeleteEverything();
            SecurityActivityQueue._setCurrentExecutionState(new CompletionState());
            Context.StartTheSystem(dataProvider, new DefaultMessageProvider());
            __context = new Context(TestUser.User1);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 private Context GetContext(LockRecursionUser currentUser)
 {
     SecurityActivityQueue._setCurrentExecutionState(new CompletionState());
     MemoryDataProvider.LastActivityId = 0;
     return(new Context(currentUser));
 }
Exemplo n.º 4
0
 private void StartTheSystem()
 {
     SecurityActivityQueue._setCurrentExecutionState(new CompletionState());
     MemoryDataProvider._lastActivityId = 0;
     Context.StartTheSystem(new MemoryDataProvider(DatabaseStorage.CreateEmpty()), new DefaultMessageProvider());
 }
Exemplo n.º 5
0
 internal static Context GetEmptyContext(TestUser currentUser)
 {
     SecurityActivityQueue._setCurrentExecutionState(new CompletionState());
     MemoryDataProvider.LastActivityId = 0;
     return(GetEmptyContext(currentUser, new MemoryDataProvider(DatabaseStorage.CreateEmpty())));
 }