Exemplo n.º 1
0
        public void Dynamic_support_should_produce_correct_results()
        {
            // arrange
            var repository = new Dapper.ContactRepository();

            // act
            var contacts = repository.GetDynamicById(1, 3, 4);

            // assert
            contacts.Count.Should().Be(3);
            Assert.AreEqual("Michael", contacts.First().FirstName);
            Assert.AreEqual("Jordan", contacts.First().LastName);
        }