aboutsummaryrefslogtreecommitdiff
path: root/src/Utilities/TestBA/TestBAFactory.cs
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2020-12-01 23:02:05 -0600
committerSean Hall <r.sean.hall@gmail.com>2020-12-01 23:02:05 -0600
commit5d0434843c6f307a46fa95139c1e754221cc13af (patch)
tree559f1714b14c08fa09449b62770c9107fae968c3 /src/Utilities/TestBA/TestBAFactory.cs
parent86456524fe4640053616f6fc18311159e6fafea5 (diff)
downloadwix-5d0434843c6f307a46fa95139c1e754221cc13af.tar.gz
wix-5d0434843c6f307a46fa95139c1e754221cc13af.tar.bz2
wix-5d0434843c6f307a46fa95139c1e754221cc13af.zip
Add MSI transaction tests.
Diffstat (limited to 'src/Utilities/TestBA/TestBAFactory.cs')
-rw-r--r--src/Utilities/TestBA/TestBAFactory.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Utilities/TestBA/TestBAFactory.cs b/src/Utilities/TestBA/TestBAFactory.cs
new file mode 100644
index 00000000..ba1de367
--- /dev/null
+++ b/src/Utilities/TestBA/TestBAFactory.cs
@@ -0,0 +1,22 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3[assembly: WixToolset.Mba.Core.BootstrapperApplicationFactory(typeof(WixToolset.Test.BA.TestBAFactory))]
4namespace WixToolset.Test.BA
5{
6 using WixToolset.Mba.Core;
7
8 public class TestBAFactory : BaseBootstrapperApplicationFactory
9 {
10 private static int loadCount = 0;
11
12 protected override IBootstrapperApplication Create(IEngine engine, IBootstrapperCommand bootstrapperCommand)
13 {
14 if (loadCount > 0)
15 {
16 engine.Log(LogLevel.Standard, $"Reloaded {loadCount} time(s)");
17 }
18 ++loadCount;
19 return new TestBA(engine, bootstrapperCommand);
20 }
21 }
22}