Exemplo n.º 1
0
        public void MapBOToEF()
        {
            var mapper = new DALCustomerMapper();
            var bo     = new BOCustomer();

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

            Customer response = mapper.MapBOToEF(bo);

            response.Email.Should().Be("A");
            response.FirstName.Should().Be("A");
            response.Id.Should().Be(1);
            response.LastName.Should().Be("A");
            response.Phone.Should().Be("A");
        }
Exemplo n.º 2
0
        public void MapBOToEF()
        {
            var mapper = new DALCustomerMapper();
            var bo     = new BOCustomer();

            bo.SetProperties(1, "A", DateTime.Parse("1/1/1987 12:00:00 AM"), 1, Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da"), 1, 1);

            Customer response = mapper.MapBOToEF(bo);

            response.AccountNumber.Should().Be("A");
            response.CustomerID.Should().Be(1);
            response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.PersonID.Should().Be(1);
            response.Rowguid.Should().Be(Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da"));
            response.StoreID.Should().Be(1);
            response.TerritoryID.Should().Be(1);
        }