コード例 #1
0
        public void MapUserTesting_EntityModel()
        {
            // Arrange
            var testUser = new Entity.User
            {
                Id       = 1,
                Username = "******",
                Password = "******"
            };

            // Act
            var modelUser = Mapper.Map(testUser);

            // Assert
            Assert.Equal(1, modelUser.Id);
            Assert.Equal("TestUser", modelUser.Username);
            Assert.Equal("qwerty", modelUser.Password);
        }