public void AdaptPersonFromModelToViewModel()
        {
            // arrange
            var fromValue = PersonTestUtility.CreateModel();
            var toValue   = new Benday.EasyAuthDemo.WebUi.Models.PersonEditorViewModel();

            // act
            SystemUnderTest.Adapt(fromValue, toValue);

            // assert
            PersonViewModelTestUtility.AssertAreEqual(fromValue, toValue);
        }
        public void AdaptPersonFromViewModelsToModels()
        {
            // arrange
            var fromValues = PersonViewModelTestUtility.CreateEditorViewModels();

            var allValuesCount = fromValues.Count;

            var toValues = new List <Benday.EasyAuthDemo.Api.DomainModels.Person>();

            // act
            SystemUnderTest.Adapt(fromValues, toValues);

            // assert
            Assert.AreEqual <int>(allValuesCount, toValues.Count, "Count was wrong.");
        }