File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/TestBase/Tests/Abp.TestBase.SampleApplication.Tests Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ public AuditedEntity_Tests()
18
18
[ Fact ]
19
19
public void Should_Write_Audit_Properties ( )
20
20
{
21
- Clock . Provider = new UtcClockProvider ( ) ;
22
-
23
21
//Arrange
24
22
AbpSession . TenantId = 1 ;
25
23
AbpSession . UserId = 2 ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public ObjectMaterialize_Tests()
35
35
[ Fact ]
36
36
public void DateTime_Kind_Propert_Should_Be_Normalized_On_Ef_ObjectMaterialition ( )
37
37
{
38
- using ( _unitOfWorkManager . Begin ( ) )
38
+ using ( var uow = _unitOfWorkManager . Begin ( ) )
39
39
{
40
40
var companies = _companyRepository . GetAll ( ) . Include ( c => c . Branches ) . ToList ( ) ;
41
41
@@ -54,8 +54,9 @@ public void DateTime_Kind_Propert_Should_Be_Normalized_On_Ef_ObjectMaterialition
54
54
branch . CreationTime . Kind . ShouldBe ( Clock . Kind ) ;
55
55
} ) ;
56
56
}
57
+
58
+ uow . Complete ( ) ;
57
59
}
58
60
}
59
-
60
61
}
61
62
}
You can’t perform that action at this time.
0 commit comments