Exemplo n.º 1
0
        public void MapEFToBOList()
        {
            var    mapper = new DALClientMapper();
            Client entity = new Client();

            entity.SetProperties("A", "A", 1, "A", "A", "A");

            List <BOClient> response = mapper.MapEFToBO(new List <Client>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
Exemplo n.º 2
0
        public void MapEFToBO()
        {
            var    mapper = new DALClientMapper();
            Client entity = new Client();

            entity.SetProperties("A", "A", 1, "A", "A", "A");

            BOClient response = mapper.MapEFToBO(entity);

            response.Email.Should().Be("A");
            response.FirstName.Should().Be("A");
            response.Id.Should().Be(1);
            response.LastName.Should().Be("A");
            response.Note.Should().Be("A");
            response.Phone.Should().Be("A");
        }