private (Execution <TKey> Execution, ExecutionAvailability Availability) PerformStartAttempt(TProcessEnum processName) { var execution = PerformExecutionAttempt(processName); var availability = _executionBusiness.IsAllowed(execution); return(execution, availability); }
public void Given_ExistingExecutionWithPreviousFinished_When_IsAllowed_Then_AllowedRetrived() { var testExecution = MockedExecutionPreviousFinished; var result = ServiceUnderTest.IsAllowed(testExecution); Assert.AreEqual(ExecutionAvailability.Available, result); }