예제 #1
0
        public void FromUser_ShouldCorrectlyConvertValidData()
        {
            //Arrange
            var user = new UserBuilder().Build();

            //Act
            var model = _converter.FromUser(user);

            //Assert
            Assert.That(model, Is.Not.Null);
            Assert.That(model.Id, Is.EqualTo(user.Id));
            Assert.That(model.FullName, Contains.Substring(user.FirstName));
            Assert.That(model.FullName, Contains.Substring(user.LastName));
        }