コード例 #1
0
        private (Execution <TKey> Execution, ExecutionAvailability Availability) PerformStartAttempt(TProcessEnum processName)
        {
            var execution    = PerformExecutionAttempt(processName);
            var availability = _executionBusiness.IsAllowed(execution);

            return(execution, availability);
        }
コード例 #2
0
        public void Given_ExistingExecutionWithPreviousFinished_When_IsAllowed_Then_AllowedRetrived()
        {
            var testExecution = MockedExecutionPreviousFinished;

            var result = ServiceUnderTest.IsAllowed(testExecution);

            Assert.AreEqual(ExecutionAvailability.Available, result);
        }