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); }
partial void UpdateCustomer(Customer instance);
partial void DeleteCustomer(Customer instance);
partial void InsertCustomer(Customer instance);