public void GetViewModel() { //Arrange Vet testVet = new Vet() { ID = 1, Name = "Sammy D" }; //Act var testVetVM = testVet.GetViewModel(); //Assert Assert.IsType <VetViewModel>(testVetVM); Assert.NotNull(testVetVM); Assert.NotEmpty(testVetVM.Name); }