Skip to content

Commit

Permalink
Fix failing UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
Manoj Attal committed May 29, 2021
1 parent b4e03de commit 77e634d
Showing 1 changed file with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@

using Common;
using Common.Lists;
using Common.Utilities;

using Data;
using DotNetNuke.Entities.Portals;
using DotNetNuke.Instrumentation;
using DotNetNuke.Web.InternalServices;

using Microsoft.Extensions.DependencyInjection;
Expand All @@ -33,9 +31,7 @@
[TestFixture]
public class FileUploadControllerTests
{
private Mock<ILoggerSource> _mockLoggerSource = new Mock<ILoggerSource>();
private Mock<DataProvider> _mockDataProvider;
private Mock<ICBO> _mockCBO = new Mock<ICBO>();
private FileUploadController _testInstance;
private Mock<CachingProvider> _mockCachingProvider;
private Mock<IPortalController> _mockPortalController;
Expand All @@ -44,23 +40,16 @@ public class FileUploadControllerTests
[SetUp]
public void SetUp()
{
LoggerSource.SetTestableInstance(this._mockLoggerSource.Object);
CBO.SetTestableInstance(this._mockCBO.Object);

this.SetupDataProvider();

this.SetupCachingProvider();

this.SetupPortalSettings();
this.SetupServiceProvider();
this.SetupSynchronizationContext();
}

[TearDown]
public void TearDown()
{
PortalController.ClearInstance();
Globals.DependencyProvider = null;
CBO.ClearInstance();
}

[Test]
[SetCulture("tr-TR")]
public async Task UploadFromLocal_ShouldUploadFile_WithTrCultureAsync()
Expand Down

0 comments on commit 77e634d

Please # to comment.