Esempio n. 1
0
        public void Can_verify_online_deposit()
        {
            //Arrange
            var deposit = _paymentTestHelper.CreateOnlineDeposit(_testPlayer.Id, 300);

            var request = new VerifyOnlineDepositRequest
            {
                Id      = deposit.Id,
                Remarks = "verify remark"
            };

            //Act
            _depositCommands.Verify(request);

            //Assert
            var settings = _paymentRepositoryMock.OnlineDeposits.Single(x => x.Id == deposit.Id);

            settings.Status.Should().Be(OnlineDepositStatus.Verified);
            settings.Remarks.Should().Be(request.Remarks);
            settings.VerifiedBy.ShouldBeEquivalentTo(_actorInfoProvider.Actor.UserName);
            settings.Verified.Should().BeCloseTo(DateTimeOffset.Now, 5000);
        }