Skip to content

Commit

Permalink
Remove not yet released code
Browse files Browse the repository at this point in the history
  • Loading branch information
turbcool committed Apr 28, 2023
1 parent 6fc1776 commit c1f06c8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,7 @@ protected virtual MSSQLDataService CreateMssqlDataService(string connectionStrin
var securityManager = new EmptySecurityManager();
var mockAuditService = new Mock<IAuditService>();

if (_useGisDataService)

This comment has been minimized.

Copy link
@Anisimova2020

Anisimova2020 May 19, 2023

Contributor

Вернуть.
В итоговой версии будет корректно работать.

return new GisMSSQLDataService(securityManager, mockAuditService.Object, businessServerProvider) { CustomizationString = connectionString };

return new MSSQLDataService(securityManager, mockAuditService.Object, businessServerProvider) { CustomizationString = connectionString };
return new MSSQLDataService(securityManager, mockAuditService.Object) { CustomizationString = connectionString };
}

/// <summary>
Expand All @@ -360,10 +357,7 @@ protected virtual PostgresDataService CreatePostgresDataService(string connectio
var securityManager = new EmptySecurityManager();
var mockAuditService = new Mock<IAuditService>();

if (_useGisDataService)

This comment has been minimized.

Copy link
@Anisimova2020

Anisimova2020 May 19, 2023

Contributor

Вернуть.
В итоговой версии будет корректно работать.

return new GisPostgresDataService(securityManager, mockAuditService.Object, businessServerProvider) { CustomizationString = connectionString };

return new PostgresDataService(securityManager, mockAuditService.Object, businessServerProvider) { CustomizationString = connectionString };
return new PostgresDataService(securityManager, mockAuditService.Object) { CustomizationString = connectionString };
}

/// <summary>
Expand All @@ -375,7 +369,7 @@ protected virtual OracleDataService CreateOracleDataService(string connectionStr
{
var securityManager = new EmptySecurityManager();
var mockAuditService = new Mock<IAuditService>();
return new OracleDataService(securityManager, mockAuditService.Object, businessServerProvider) { CustomizationString = connectionString };

This comment has been minimized.

Copy link
@Anisimova2020

Anisimova2020 May 19, 2023

Contributor

Вернуть.
В итоговой версии будет корректно работать.

return new OracleDataService(securityManager, mockAuditService.Object) { CustomizationString = connectionString };
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void TestSettingAuditFieldsForTypeWithEnabledAudit()
/// <returns>The <see cref="MSSQLDataService" /> instance.</returns>
protected override MSSQLDataService CreateMssqlDataService(string connectionString)
{
return new MSSQLDataService(new EmptySecurityManager(), GetAuditServiceForTest(), businessServerProvider) { CustomizationString = connectionString };

This comment has been minimized.

Copy link
@Anisimova2020

Anisimova2020 May 19, 2023

Contributor

Вернуть.
В итоговой версии будет корректно работать.

return new MSSQLDataService(new EmptySecurityManager(), GetAuditServiceForTest()) { CustomizationString = connectionString };
}

/// <summary>
Expand All @@ -124,7 +124,7 @@ protected override MSSQLDataService CreateMssqlDataService(string connectionStri
/// <returns>The <see cref="PostgresDataService" /> instance.</returns>
protected override PostgresDataService CreatePostgresDataService(string connectionString)
{
return new PostgresDataService(new EmptySecurityManager(), GetAuditServiceForTest(), businessServerProvider) { CustomizationString = connectionString };

This comment has been minimized.

Copy link
@Anisimova2020

Anisimova2020 May 19, 2023

Contributor

Вернуть.
В итоговой версии будет корректно работать.

return new PostgresDataService(new EmptySecurityManager(), GetAuditServiceForTest()) { CustomizationString = connectionString };
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public virtual void ConfigureServices(IServiceCollection services)

var securityManager = new EmptySecurityManager();
Mock<IAuditService> mockAuditService = new Mock<IAuditService>();
Mock<IBusinessServerProvider> mockBusinessServerProvider = new Mock<IBusinessServerProvider>();

This comment has been minimized.

Copy link
@Anisimova2020

Anisimova2020 May 19, 2023

Contributor

Вернуть.
По идее в этом месте должно было скомпилироваться.

IDataService dataService = new PostgresDataService(securityManager, mockAuditService.Object, mockBusinessServerProvider.Object) { CustomizationString = CustomizationString };
IDataService dataService = new PostgresDataService(securityManager, mockAuditService.Object) { CustomizationString = CustomizationString };

unityContainer.RegisterInstance(dataService);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ public XUnitTestRunnerInitializer(IMessageSink messageSink)
: base(messageSink)
{
var container = new UnityContainer();
IServiceProvider serviceProvider = new UnityServiceProvider(container);

This comment has been minimized.

Copy link
@Anisimova2020

Anisimova2020 May 19, 2023

Contributor

Вернуть.
По идее в этом месте должно было скомпилироваться.

IBusinessServerProvider businessServerProvider = new BusinessServerProvider(serviceProvider);
IDataService ds = new MSSQLDataService(new Mock<ISecurityManager>().Object, new Mock<IAuditService>().Object, businessServerProvider);
BaseIntegratedTest.BSProvider = businessServerProvider;
IDataService ds = new MSSQLDataService(new Mock<ISecurityManager>().Object, new Mock<IAuditService>().Object);

DataServiceProvider.DataService = ds;
ExternalLangDef.LanguageDef = new ExternalLangDef(ds);
Expand Down

0 comments on commit c1f06c8

Please sign in to comment.