Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "manojreddy"

I used appsettings in test project also, it’s not working too.

You can check the same in the code shared with you.

@aaron any updates?

Any updates please?

I tried the below scenarios, still giving warning.

  1. Clean, Build
  2. Clean, Package Restore, Build

Yes, I was on .net core 1.1 before, now targeting all the projects to core2.0.

I didn't get your question, Could you please explain it clearly?

Do you have inherited entities which are used in this test ?

Tried but still the same issue.

Tried this code:

using Abp.Domain.Uow;

[UnitOfWork]
public virtual MyEntityInput GetMyEntityDetailsforEditRepo(EntityDto input)
{

Didn't get >So only the last SetBasePath matters, as it's only used on Build. , Could you please explain.

Still facing the issue. Getting the below message while running test case.

Its searching appsettings.json in Test Module path.

[12/22/2017 7:32:04 AM Informational] [xUnit.net 00:01:13.1092474] Starting: MyCompany.MyProject.Tests [12/22/2017 7:32:09 AM Error] [xUnit.net 00:01:17.2516509] MyCompany.MyProject.Tests.MyEntity.MyEntityAppService_Test.Should_Create_MyEntity_With_Valid_Arguments [FAIL] [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2540945] Castle.MicroKernel.ComponentActivator.ComponentActivatorException : ComponentActivator: could not instantiate MyCompany.MyProject.Tests.TestAppConfigurationAccessor [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2541647] ---- System.IO.FileNotFoundException : The configuration file 'appsettings.json' was not found and is not optional. The physical path is 'C:\tt\MyProject\aspnet-core\test\MyCompany.MyProject.Tests\bin\Debug\netcoreapp2.0\appsettings.json'. [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2556024] Stack Trace: [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2567318] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstanceCore(ConstructorCandidate constructor, Object[] arguments, Type implType) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2568189] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, ConstructorCandidate constructor, Object[] arguments) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2568730] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2569150] at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2569605] at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2582037] at Castle.MicroKernel.Lifestyle.SingletonLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2582823] at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2583437] at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2583926] at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.Resolve(CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2584414] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateConstructorArguments(ConstructorCandidate constructor, CreationContext context) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2584852] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2585230] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2585655] at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2586074] at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2586457] at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2586923] at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2587307] at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2587745] at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments, IReleasePolicy policy) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2588209] at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2589080] D:\Github\aspnetboilerplate\src\Abp\Dependency\IocResolverExtensions.cs(30,0): at Abp.Dependency.IocResolverExtensions.ResolveAsDisposable[T](IIocResolver iocResolver, Type type) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2589677] D:\Github\aspnetboilerplate\src\Abp\Configuration\SettingDefinitionManager.cs(32,0): at Abp.Configuration.SettingDefinitionManager.Initialize() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2590223] D:\Github\aspnetboilerplate\src\Abp\AbpKernelModule.cs(73,0): at Abp.AbpKernelModule.PostInitialize() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2590653] at System.Collections.Generic.List1.ForEach(Action1 action) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2591088] D:\Github\aspnetboilerplate\src\Abp\AbpBootstrapper.cs(158,0): at Abp.AbpBootstrapper.Initialize() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2591515] D:\Github\aspnetboilerplate\src\Abp.TestBase\TestBase\AbpIntegratedTestBase.cs(53,0): at Abp.TestBase.AbpIntegratedTestBase1.InitializeAbp() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2592108] C:\tt\MyProject\aspnet-core\test\MyCompany.MyProject.Tests\AppTestBase.cs(27,0): at MyCompany.MyProject.Tests.AppTestBase..ctor() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2592664] C:\tt\MyProject\aspnet-core\test\MyCompany.MyProject.Tests\MyEntity\MyEntityAppServiceTestBase.cs(10,0): at MyCompany.MyProject.Tests.MyEntity.MyEntityAppServiceTestBase..ctor() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2593184] C:\tt\MyProject\aspnet-core\test\MyCompany.MyProject.Tests\MyEntity\MyEntityappservice_test.cs(12,0): at MyCompany.MyProject.Tests.MyEntity.MyEntityAppService_Test..ctor() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2593581] ----- Inner Stack Trace ----- [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2593969] at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2594422] at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2594790] at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList1 providers) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2595191] at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2595649] C:\tt\MyProject\aspnet-core\test\MyCompany.MyProject.Tests\TestAppConfigurationAccessor.cs(34,0): at MyCompany.MyProject.Tests.TestAppConfigurationAccessor.BuildConfig() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2596233] C:\tt\MyProject\aspnet-core\test\MyCompany.MyProject.Tests\TestAppConfigurationAccessor.cs(19,0): at MyCompany.MyProject.Tests.TestAppConfigurationAccessor..ctor() [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2596609] at lambda_method(Closure , Object[] ) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2597049] at Castle.Core.Internal.ReflectionUtil.Instantiate[TBase](Type subtypeofTBase, Object[] ctorArgs) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2597502] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstanceCore(ConstructorCandidate constructor, Object[] arguments, Type implType) [12/22/2017 7:32:09 AM Informational] [xUnit.net 00:01:17.2980342] Finished: MyCompany.MyProject.Tests [12/22/2017 7:32:09 AM Informational] ========== Run test finished: 1 run (0:01:32.5026945) ==========

I don't have MyProjectWebHostModule.cs file, shall I add new? Do I need to add any dependency in that?

I have kept appsettings.json file in Host project as well with the license code. And I'm trying to read it from that location.

Showing 91 to 100 of 199 entries