Appccelerate.Bootstrapper.Reporting.ExecutionContext.CreateExecutableContext C# (CSharp) Метод

CreateExecutableContext() публичный Метод

public CreateExecutableContext ( IDescribable describable ) : IExecutableContext
describable IDescribable
Результат IExecutableContext
        public IExecutableContext CreateExecutableContext(IDescribable describable)
        {
            var executableInfo = this.CreateExecutableContextCore(describable);

            this.executables.Add(executableInfo);

            return executableInfo;
        }

Usage Example

Пример #1
0
        public void CreateExecutableContext_ShouldCreateExecutableContext()
        {
            ExecutionContext testee = CreateTestee(Mock.Of <IDescribable>());

            var executableContext = testee.CreateExecutableContext(Mock.Of <IDescribable>());

            testee.Executables.Should().NotBeEmpty()
            .And.HaveCount(1)
            .And.Contain(executableContext);
        }