public void AsCreationResult_WithSuccesAndErrors_ReturnsResultWithInnerExecutionErrors() { var error1 = new ExecutionError(new ErrorCodeInfo(nameof(Core), FixtureUtils.String(), FixtureUtils.String())); var error2 = new ExecutionError(new ErrorCodeInfo(nameof(Core), FixtureUtils.String(), FixtureUtils.String())); var creationResults = new[] { new CreationResult <DummyEntry>(error1), new CreationResult <DummyEntry>(new DummyEntry()), new CreationResult <DummyEntry>(error2), }; var result = CreationResult.AsCreationResult(creationResults); result.Entry.Should().BeNull(); result.Errors.Count.Should().Be(2); result.Errors.Should().Contain(error1); result.Errors.Should().Contain(error2); }