Merge pull request #2489 from recepdmr/todolist

Move AbpIntegratedTest to Volo.Abp.Testing namespace
pull/2521/head
Halil İbrahim Kalkan 5 years ago committed by GitHub
commit 388dce7cd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,13 +5,14 @@ namespace Volo.Abp.DynamicProxy
{
public static class ProxyHelper
{
private const string ProxyNamespace = "Castle.Proxies";
/// <summary>
/// Returns dynamic proxy target object if this is a proxied object, otherwise returns the given object.
/// It supports Castle Dynamic Proxies.
/// </summary>
public static object UnProxy(object obj)
{
if (obj.GetType().Namespace != "Castle.Proxies")
if (obj.GetType().Namespace != ProxyNamespace)
{
return obj;
}

@ -2,10 +2,8 @@
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;
namespace Volo.Abp
namespace Volo.Abp.Testing
{
//TODO: Move to "Testing" namespace
public abstract class AbpIntegratedTest<TStartupModule> : AbpTestBaseWithServiceProvider, IDisposable
where TStartupModule : IAbpModule
{

@ -5,6 +5,7 @@ using NSubstitute;
using Volo.Abp.Autofac;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Auditing

@ -1,4 +1,6 @@
namespace Volo.Abp.Authorization
using Volo.Abp.Testing;
namespace Volo.Abp.Authorization
{
public class AuthorizationTestBase : AbpIntegratedTest<AbpAuthorizationTestModule>
{

@ -3,6 +3,7 @@ using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Volo.Abp.AutoMapper.SampleClasses;
using Volo.Abp.ObjectMapping;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.AutoMapper

@ -3,6 +3,7 @@ using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Volo.Abp.AutoMapper.SampleClasses;
using Volo.Abp.ObjectMapping;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.AutoMapper

@ -2,6 +2,7 @@
using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Xunit;
using IObjectMapper = Volo.Abp.ObjectMapping.IObjectMapper;

@ -3,6 +3,7 @@ using Shouldly;
using System;
using Volo.Abp.AutoMapper.SampleClasses;
using Volo.Abp.ObjectMapping;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.AutoMapper

@ -1,4 +1,6 @@
namespace Volo.Abp.BackgroundJobs
using Volo.Abp.Testing;
namespace Volo.Abp.BackgroundJobs
{
public abstract class BackgroundJobsTestBase : AbpIntegratedTest<AbpBackgroundJobsTestModule>
{

@ -3,6 +3,7 @@ using Shouldly;
using System;
using System.Reflection;
using System.Threading.Tasks;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Caching

@ -1,6 +1,7 @@
using System;
using System.Threading.Tasks;
using Shouldly;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Caching

@ -1,4 +1,6 @@
namespace Volo.Abp.Cli
using Volo.Abp.Testing;
namespace Volo.Abp.Cli
{
public class AbpCliTestBase : AbpIntegratedTest<AbpCliTestModule>
{

@ -4,6 +4,7 @@ using Shouldly;
using Volo.Abp;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Xunit;
namespace Microsoft.Extensions.DependencyInjection

@ -2,6 +2,7 @@ using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.DynamicProxy

@ -1,4 +1,6 @@
namespace Volo.Abp.Dapper
using Volo.Abp.Testing;
namespace Volo.Abp.Dapper
{
public abstract class DapperTestBase : AbpIntegratedTest<AbpDapperTestModule>
{

@ -1,6 +1,7 @@
using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Data

@ -2,6 +2,7 @@
using System.Threading.Tasks;
using Shouldly;
using Volo.Abp.Emailing.Templates;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Emailing

@ -2,6 +2,7 @@
using System.Threading.Tasks;
using Shouldly;
using Volo.Abp.Emailing.Templates;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Emailing

@ -1,4 +1,6 @@
namespace Volo.Abp.EntityFrameworkCore
using Volo.Abp.Testing;
namespace Volo.Abp.EntityFrameworkCore
{
public abstract class EntityFrameworkCoreTestBase : AbpIntegratedTest<AbpEntityFrameworkCoreTestModule>
{

@ -1,3 +1,5 @@
using Volo.Abp.Testing;
namespace Volo.Abp.EventBus.Distributed
{
public abstract class LocalDistributedEventBusTestBase : AbpIntegratedTest<EventBusTestModule>

@ -1,3 +1,5 @@
using Volo.Abp.Testing;
namespace Volo.Abp.EventBus.Local
{
public abstract class EventBusTestBase : AbpIntegratedTest<EventBusTestModule>

@ -1,4 +1,6 @@
namespace Volo.Abp.Features
using Volo.Abp.Testing;
namespace Volo.Abp.Features
{
public class FeatureTestBase : AbpIntegratedTest<AbpFeaturesTestModule>
{

@ -6,6 +6,7 @@ using Shouldly;
using Volo.Abp.Autofac;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Volo.Abp.Validation;
using Xunit;

@ -1,6 +1,7 @@
using System;
using Shouldly;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Ldap

@ -1,6 +1,7 @@
using System;
using Shouldly;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Ldap

@ -7,6 +7,7 @@ using Volo.Abp.Localization.TestResources.Base.CountryNames;
using Volo.Abp.Localization.TestResources.Base.Validation;
using Volo.Abp.Localization.TestResources.Source;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Volo.Abp.VirtualFileSystem;
using Xunit;

@ -3,6 +3,7 @@ using Microsoft.Extensions.Localization;
using Shouldly;
using Volo.Abp.Localization.TestResources.Source;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Volo.Abp.VirtualFileSystem;
using Xunit;

@ -3,6 +3,7 @@ using System.Threading.Tasks;
using NSubstitute;
using Volo.Abp.BackgroundJobs;
using Volo.Abp.Emailing.Smtp;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.MailKit

@ -1,4 +1,6 @@
namespace Volo.Abp.MemoryDb
using Volo.Abp.Testing;
namespace Volo.Abp.MemoryDb
{
public abstract class MemoryDbTestBase : AbpIntegratedTest<AbpMemoryDbTestModule>
{

@ -1,5 +1,6 @@
using Shouldly;
using Volo.Abp.Minify.Styles;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Minify.NUglify

@ -1,5 +1,6 @@
using Shouldly;
using Volo.Abp.Minify.Html;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Minify.NUglify

@ -1,5 +1,6 @@
using Shouldly;
using Volo.Abp.Minify.Scripts;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Minify.NUglify

@ -1,3 +1,5 @@
using Volo.Abp.Testing;
namespace Volo.Abp.MongoDB
{
public abstract class MongoDbTestBase : AbpIntegratedTest<AbpMongoDbTestModule>

@ -1,4 +1,6 @@
namespace Volo.Abp.MultiTenancy
using Volo.Abp.Testing;
namespace Volo.Abp.MultiTenancy
{
public class MultiTenancyTestBase : AbpIntegratedTest<MultiTenancyTestModule>
{

@ -1,4 +1,6 @@
namespace Volo.Abp.ObjectMapping
using Volo.Abp.Testing;
namespace Volo.Abp.ObjectMapping
{
public abstract class AbpObjectMappingTestBase : AbpIntegratedTest<AbpObjectMappingTestModule>
{

@ -1,4 +1,5 @@
using Shouldly;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Security.Encryption

@ -1,5 +1,6 @@
using Shouldly;
using Volo.Abp.Serialization.Objects;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Serialization

@ -1,5 +1,6 @@
using System.Threading.Tasks;
using Shouldly;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Settings

@ -1,3 +1,5 @@
using Volo.Abp.Testing;
namespace Volo.Abp.TestApp
{
public class TestAppTestBase : AbpIntegratedTest<TestAppTestModule>

@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.DependencyInjection;
using NSubstitute;
using Shouldly;
using Volo.Abp.Data;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Modularity;
using Volo.Abp.MultiTenancy;

@ -2,6 +2,7 @@ using System;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Volo.Abp.Uow;
namespace Volo.Abp.TestApp.Testing

@ -2,7 +2,7 @@
using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Volo.Abp.Modularity;
using Volo.Abp.UI.Navigation;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.UI.Navigation

@ -1,6 +1,7 @@
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Uow

@ -2,6 +2,7 @@
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Uow

@ -1,6 +1,7 @@
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Uow

@ -9,6 +9,7 @@ using Volo.Abp.Application.Dtos;
using Volo.Abp.Autofac;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.Validation

@ -3,6 +3,7 @@ using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Primitives;
using Shouldly;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.VirtualFileSystem

@ -4,6 +4,7 @@ using System.Text;
using Microsoft.Extensions.DependencyInjection;
using Shouldly;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
using Xunit;
namespace Volo.Abp.VirtualFileSystem

@ -1,4 +1,6 @@
namespace Volo.Abp.Account
using Volo.Abp.Testing;
namespace Volo.Abp.Account
{
public class AbpAccountApplicationTestBase : AbpIntegratedTest<AbpAccountApplicationTestModule>
{

@ -1,4 +1,5 @@
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
namespace Volo.Abp.AuditLogging
{

@ -1,5 +1,6 @@
using Volo.Abp;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
namespace Volo.Abp.BackgroundJobs
{

@ -4,6 +4,7 @@ using NSubstitute;
using Volo.Abp;
using Volo.Abp.Modularity;
using Volo.Abp.Users;
using Volo.Abp.Testing;
namespace Volo.Blogging
{

@ -6,6 +6,7 @@ using Octokit;
using Volo.Abp;
using Volo.Abp.Modularity;
using Volo.Docs.GitHub.Documents;
using Volo.Abp.Testing;
namespace Volo.Docs
{

@ -1,4 +1,5 @@
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
namespace Volo.Abp.FeatureManagement
{

@ -1,4 +1,5 @@
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
namespace Volo.Abp.Identity
{

@ -1,4 +1,6 @@
namespace Volo.Abp.IdentityServer
using Volo.Abp.Testing;
namespace Volo.Abp.IdentityServer
{
public class AbpIdentityServerDomainTestBase : AbpIntegratedTest<AbpIdentityServerDomainTestModule>
{

@ -1,4 +1,6 @@
namespace Volo.Abp.IdentityServer
using Volo.Abp.Testing;
namespace Volo.Abp.IdentityServer
{
public class AbpIdentityServerTestBase : AbpIntegratedTest<AbpIdentityServerTestEntityFrameworkCoreModule>
{

@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
namespace Volo.Abp.IdentityServer
{

@ -1,4 +1,5 @@
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
namespace Volo.Abp.PermissionManagement
{

@ -1,4 +1,5 @@
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
namespace Volo.Abp.SettingManagement
{

@ -1,4 +1,5 @@
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
namespace Volo.Abp.TenantManagement
{

@ -1,4 +1,5 @@
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
namespace Volo.Abp.Users
{

@ -4,6 +4,7 @@ using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;
using Volo.Abp.Modularity;
using Volo.Abp.Uow;
using Volo.Abp.Testing;
namespace Acme.BookStore
{

@ -4,6 +4,7 @@ using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;
using Volo.Abp.Modularity;
using Volo.Abp.Uow;
using Volo.Abp.Testing;
namespace Acme.BookStore
{

@ -4,6 +4,7 @@ using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;
using Volo.Abp.Modularity;
using Volo.Abp.Uow;
using Volo.Abp.Testing;
namespace Acme.BookStore.BookManagement
{

@ -4,6 +4,7 @@ using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;
using Volo.Abp.Modularity;
using Volo.Abp.Uow;
using Volo.Abp.Testing;
namespace Acme.BookStore
{

@ -4,6 +4,7 @@ using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;
using Volo.Abp.Modularity;
using Volo.Abp.Uow;
using Volo.Abp.Testing;
namespace DashboardDemo
{

@ -1,5 +1,6 @@
using Volo.Abp;
using Volo.Abp.Modularity;
using Volo.Abp.Testing;
namespace ProductManagement
{

@ -4,6 +4,7 @@ using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;
using Volo.Abp.Modularity;
using Volo.Abp.Uow;
using Volo.Abp.Testing;
namespace MyCompanyName.MyProjectName
{

@ -4,6 +4,7 @@ using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;
using Volo.Abp.Modularity;
using Volo.Abp.Uow;
using Volo.Abp.Testing;
namespace MyCompanyName.MyProjectName
{

Loading…
Cancel
Save