AccessLogTests.TransactionWatcherTests.ShouldReturnTheNewTransaction C# (CSharp) Method

ShouldReturnTheNewTransaction() private method

private ShouldReturnTheNewTransaction ( ) : void
return void
        public void ShouldReturnTheNewTransaction()
        {
            var when = DateTime.Now;
            var transaction = new Transaction { CreatedAt = when, UpdatedAt = when, EmployeeId = "1", EmployeeName = "Tom" };
            var expectedTransaction = new List<Transaction> { transaction };
            this.transactionRepositoryMock.Setup(repository => repository.GetLastTransactions(It.IsAny<DateTime>())).Returns(expectedTransaction);

            this.connection.Execute("insert into trans(empID, empname) values(@employeeId, @employeeName)", transaction);

            Assert.NotNull(this.transactions);
            Assert.That(this.transactions, Is.Not.Null.After(100));
            Assert.That(this.transactions, Is.Not.Empty);
            Assert.That(this.transactions, Is.EqualTo(expectedTransaction));
        }