Beispiel #1
0
        public void Current_WithMultipleSessions_ReturnsLatestSession()
        {
            var subject   = new TriggerService(new TriggerDiscoveryServiceStub(), new NoRecursionStrategy(), new LoggerFactory(), new OptionsSnapshotStub <TriggerOptions>());
            var dbContext = new TestDbContext();

            subject.CreateSession(dbContext, null);
            var triggerSession = subject.CreateSession(dbContext, null);

            Assert.Equal(subject.Current, triggerSession);
        }