public void PassedComposerIsNotNull()
 {
     ViewModel.ComposerWrapper ComposerWrapper;
     ArgumentNullException ex = Assert.Throws<ArgumentNullException>(() => ComposerWrapper = new ComposerWrapper(null));
     var exceptionMessage = ex.ParamName;
     Assert.Equal("composer must not be null", exceptionMessage);
 }
 public void WrapperSetsLifeDatesInModel()
 {
     var composerWrapper = new ComposerWrapper(_Composer);
     composerWrapper.composer.LifeDates = new Model.LifeSpan{DateOfBirth = new DateTime(1688,4,4), DateOfDeath = new DateTime(1722,5,5)};
      Assert.Equal(composerWrapper.composer.LifeDates, _Composer.LifeDates);
      Assert.Equal(_Composer.LifeDates.DateOfBirth, new DateTime(1688,4,4));
      Assert.Equal(_Composer.LifeDates.DateOfDeath, new DateTime(1722,5,5));
 }
        public void ComposerViewModelSetsModelProperties()
        {
            var composerWrapper = new ComposerWrapper(_Composer);
            composerWrapper.FirstName = "Harold";
            composerWrapper.LastName = "MacMillan";

            Assert.Equal(composerWrapper.FirstName, _Composer.FirstName);
            Assert.Equal(composerWrapper.LastName, _Composer.LastName);
        }
 public void WrapperPropertiesReferenceComposerModelProperties()
 {
     var composerWrapper = new ComposerWrapper(_Composer);
     Assert.Equal("Edwards", composerWrapper.composer.LastName);
     Assert.Equal(_Composer.FirstName, composerWrapper.composer.FirstName);
 }
 public void WrapperContainsComposerModel()
 {
     var composerWrapper = new ComposerWrapper(_Composer);
      Assert.Equal(_Composer, composerWrapper.composer);
 }