示例#1
0
        public void Test_InsertClient()
        {
            var data     = new EfData();
            var expected = new Client()
            {
                Name = "Derek Geter", Address = new Address()
                {
                    Street = "1234 main", City = "Reston", State = "VA", Zip = "20190"
                }, Email = "*****@*****.**", PhoneNumber = "1234567890", UserId = "60d9002e-667f-4794-a9dd-670c0ecf56c9"
            };

            var actual = data.AddClient(expected);

            Assert.True(actual);
        }
示例#2
0
 public bool AddClient(ClientDAO client)
 {
     return(ef.AddClient(ClientMapper.MapToClient(client)));
 }