public void MapEToCustomerTest()
        {
            d.Customer customer1 = new d.Customer
            {
                CustomerID = 1,
                FirstName  = "tri",
                LastName   = "nguyen",
                Email      = "123@321",
                Password   = "******"
            };

            l.Customer customer2 = d.Mapper.MapEToCustomer(customer1);

            Assert.Equal(customer1.CustomerID, customer2.CustomerID);
            Assert.Equal(customer1.FirstName, customer2.FirstName);
            Assert.Equal(customer1.LastName, customer2.LastName);
            Assert.Equal(customer1.Email, customer2.Email);
            Assert.Equal(customer1.Password, customer2.Password);
        }
示例#2
0
 partial void UpdateCustomer(Customer instance);
示例#3
0
 partial void DeleteCustomer(Customer instance);
示例#4
0
 partial void InsertCustomer(Customer instance);