|
|
|
@ -57,12 +57,11 @@ namespace Volo.CmsKit.Reactions |
|
|
|
{ |
|
|
|
_currentUser.Id.Returns(_cmsKitTestData.User1Id); |
|
|
|
|
|
|
|
await _reactionPublicAppService.CreateAsync(new CreateReactionDto |
|
|
|
{ |
|
|
|
EntityType = _cmsKitTestData.EntityType2, |
|
|
|
EntityId = _cmsKitTestData.EntityId2, |
|
|
|
ReactionName = StandardReactions.Hooray |
|
|
|
}); |
|
|
|
await _reactionPublicAppService.CreateAsync( |
|
|
|
_cmsKitTestData.EntityType2, |
|
|
|
_cmsKitTestData.EntityId2, |
|
|
|
StandardReactions.Hooray |
|
|
|
); |
|
|
|
|
|
|
|
UsingDbContext(context => |
|
|
|
{ |
|
|
|
@ -81,12 +80,11 @@ namespace Volo.CmsKit.Reactions |
|
|
|
{ |
|
|
|
_currentUser.Id.Returns(_cmsKitTestData.User1Id); |
|
|
|
|
|
|
|
await _reactionPublicAppService.DeleteAsync(new DeleteReactionDto |
|
|
|
{ |
|
|
|
EntityType = _cmsKitTestData.EntityType1, |
|
|
|
EntityId = _cmsKitTestData.EntityId1, |
|
|
|
ReactionName = StandardReactions.Confused |
|
|
|
}); |
|
|
|
await _reactionPublicAppService.DeleteAsync( |
|
|
|
_cmsKitTestData.EntityType1, |
|
|
|
_cmsKitTestData.EntityId1, |
|
|
|
StandardReactions.Confused |
|
|
|
); |
|
|
|
|
|
|
|
UsingDbContext(context => |
|
|
|
{ |
|
|
|
|