예제 #1
0
        public void NullBuilder_Restore()
        {
            // Arrange
            var assemblerUnderTest = new BuilderAssembler<NullBuilder, NullBuilderDTO>(null);
            var dto = new NullBuilderDTO()
            {
                Label = "test"
            };

            // Act
            var restored = assemblerUnderTest.Restore(dto);

            // Assert
            Assert.IsNotNull(restored);
            Assert.IsInstanceOf<NullBuilder>(restored);
            var builder = (NullBuilder)restored;
            Assert.AreEqual(dto.Label, builder.Label);
        }
예제 #2
0
        public void NullBuilder_Restore()
        {
            // Arrange
            var assemblerUnderTest = new BuilderAssembler<NullBuilder, NullBuilderDTO>(null);
            var dto = new NullBuilderDTO()
            {
                Label = "test"
            };

            // Act
            var restored = assemblerUnderTest.Restore(dto);

            // Assert
            Assert.IsNotNull(restored);
            Assert.IsInstanceOf<NullBuilder>(restored);
            var builder = (NullBuilder)restored;
            Assert.AreEqual(dto.Label, builder.Label);
        }