Nettiers.AdventureWorks.UnitTests.EmployeePayHistoryTest.Step_06_SerializeEntity_Generated C# (CSharp) Méthode

Step_06_SerializeEntity_Generated() private méthode

Serialize the mock EmployeePayHistory entity into a temporary file.
private Step_06_SerializeEntity_Generated ( ) : void
Résultat void
		private void Step_06_SerializeEntity_Generated()
		{	
			using (TransactionManager tm = CreateTransaction())
			{
				mock =  CreateMockInstance(tm);
				string fileName = System.IO.Path.Combine(System.IO.Path.GetTempPath(), "temp_EmployeePayHistory.xml");
			
				EntityHelper.SerializeXml(mock, fileName);
				Assert.IsTrue(System.IO.File.Exists(fileName), "Serialized mock not found");
					
				System.Console.WriteLine("mock correctly serialized to a temporary file.");			
			}
		}