mirror of https://github.com/EasyAbp/EShop.git
3 changed files with 46 additions and 3 deletions
@ -1,10 +1,19 @@ |
|||||
namespace EasyAbp.EShop.Stores |
using System; |
||||
|
using EasyAbp.EShop.Stores.EntityFrameworkCore; |
||||
|
|
||||
|
namespace EasyAbp.EShop.Stores |
||||
{ |
{ |
||||
/* Inherit from this class for your application layer tests. |
/* Inherit from this class for your application layer tests. |
||||
* See SampleAppService_Tests for example. |
* See SampleAppService_Tests for example. |
||||
*/ |
*/ |
||||
public abstract class StoresApplicationTestBase : StoresTestBase<EShopStoresApplicationTestModule> |
public abstract class StoresApplicationTestBase : StoresTestBase<EShopStoresApplicationTestModule> |
||||
{ |
{ |
||||
|
protected void UsingDbContext(Action<IStoresDbContext> action) |
||||
|
{ |
||||
|
using (var dbContext = GetRequiredService<IStoresDbContext>()) |
||||
|
{ |
||||
|
action.Invoke(dbContext); |
||||
|
} |
||||
|
} |
||||
} |
} |
||||
} |
} |
||||
@ -0,0 +1,7 @@ |
|||||
|
namespace EasyAbp.EShop.Stores |
||||
|
{ |
||||
|
public static class StoresTestData |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue