예제 #1
0
        public void CreateAreaDTOWithCorrectIdProperty_Test()
        {
            // Arrange
            var area = FactoryForTest.GetArea(id: 1);

            // Act
            var areaDTO = factory.Create(area);

            // Assert
            Assert.AreEqual(area.Id, areaDTO.Id);
        }
예제 #2
0
        public void CreateAreaDTOWhichHasToBeNotNull_Test()
        {
            // Arrange
            var area = FactoryForTest.GetArea();

            // Act
            var areaDTO = factory.Create(area);

            // Assert
            Assert.IsNotNull(areaDTO);
        }