public async void ShouldNot_ProcessAccountIsCheckedEventAsync_Invalid() { var accountApprovedEvent = new AccountIsCheckedEvent { Id = 5.ToGuid().ToString() }; accountApprovedEvent.SetApproval(); var newCreatedAccount = await _manager.ProcessAccountIsCheckedEventAsync(accountApprovedEvent); Assert.Null(newCreatedAccount); }
public async void Should_ProcessAccountIsCheckedEventAsync_Blocked() { var accountApprovedEvent = new AccountIsCheckedEvent { Id = 1.ToGuid().ToString() }; accountApprovedEvent.SetBlocked(); var newCreatedAccount = await _manager.ProcessAccountIsCheckedEventAsync(accountApprovedEvent); Assert.NotNull(newCreatedAccount); Assert.True(newCreatedAccount.IsBlocked()); }