CQRS.Tests.CQRS.EventSourcing.AggregateRoot.NestedEntitiesTests.IntegerId.NestedEntitiesTests.ComponentPropertiesAreSetcorrectly C# (CSharp) Метод

ComponentPropertiesAreSetcorrectly() приватный Метод

private ComponentPropertiesAreSetcorrectly ( ) : void
Результат void
        public void ComponentPropertiesAreSetcorrectly() {
            var root = new Root("root");

            var component = root.Component;
            component.Name.Should().BeNullOrEmpty();

            component.Rename("newName");
            component.Name.Should().Be("newName");
        }