public void TestGenerateOutputFileWithEmptyCustomerProduct() { underTest = new GenerateOutputFile <CustomerProduct>() { GenericProperty = customerProduct, FileSystem = mockFileSystem.Object, FilePath = filePath }; underTest.Start(); }
public void TestInitialize() { mockFileSystem = new Mock <IFileSystem>(); filePath = string.Empty; loadTemplate = string.Empty; underTest = new GenerateOutputFile <CustomerProduct>(); }
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); }