예제 #1
0
        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);
        }
예제 #2
0
        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());
        }