public void EntityReference_Constructor_Has_Correctly_Initialized_State()
        {
            // Arrange
            const string id = "abc/123";
            const string description = "entityDescription";
            // Act
            EntityReference entityReference = new EntityReference(id, description);

            // Assert
            entityReference.ShouldBeEquivalentTo(new
                                        {
                                            Id = id,
                                            Description = description,
                                        });
        }
示例#2
0
        public void EntityReference_Constructor_Has_Correctly_Initialized_State()
        {
            // Arrange
            const string id          = "abc/123";
            const string description = "entityDescription";
            // Act
            EntityReference entityReference = new EntityReference(id, description);

            // Assert
            entityReference.ShouldBeEquivalentTo(new
            {
                Id          = id,
                Description = description,
            });
        }