public void ContactPointViewModel_Returns_ValidViewModel_NullUse()
        {
            var model = new ContactPoint
            {
                System = ContactPoint.ContactPointSystem.Email,
                Use    = null,
                Value  = "EmailAddress"
            };

            var viewModel = model.ToViewModel();

            Assert.Null(viewModel.Use);
        }
        public void ContactPointViewModel_Returns_ValidViewModel_Full()
        {
            var model = new ContactPoint
            {
                System = ContactPoint.ContactPointSystem.Email,
                Use    = ContactPoint.ContactPointUse.Work,
                Value  = "EmailAddress"
            };

            var viewModel = model.ToViewModel();

            Assert.NotNull(viewModel);
            Assert.Equal("Email", viewModel.System);
            Assert.Equal("Work", viewModel.Use);
            Assert.Equal("EmailAddress", viewModel.Value);
        }
        public void ContactPointViewModel_Null_ThrowsException()
        {
            ContactPoint model = null;

            Assert.Throws <NullReferenceException>(() => model.ToViewModel());
        }