public void TestGenerateOutputFileWithEmptyCustomerProduct() { underTest = new GenerateOutputFile <CustomerProduct>() { GenericProperty = customerProduct, FileSystem = mockFileSystem.Object, FilePath = filePath }; underTest.Start(); }
public void TestGenerateOutputFileWithoutOutputTemplate() { customerProduct = BuildCustomerProduct(); OutputTemplate.Load = null; underTest = new GenerateOutputFile <CustomerProduct>() { GenericProperty = customerProduct, FileSystem = mockFileSystem.Object, FilePath = filePath }; underTest.Start(); }
public void TestGenerateOutputFileAsExpected() { customerProduct = BuildCustomerProduct(); OutputTemplate.Load = loadTemplate; var filePath = string.Concat(customerProduct.Id, '_', customerProduct.FirstName); underTest = new GenerateOutputFile <CustomerProduct>() { GenericProperty = customerProduct, FileSystem = mockFileSystem.Object, FilePath = filePath }; underTest.Start(); Assert.AreEqual(underTest.FilePath, filePath); }