public void MapEFToBOList() { var mapper = new DALCustomerMapper(); Customer entity = new Customer(); entity.SetProperties("A", 1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da"), 1, 1); List <BOCustomer> response = mapper.MapEFToBO(new List <Customer>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBOList() { var mapper = new DALCustomerMapper(); Customer entity = new Customer(); entity.SetProperties("A", "A", 1, "A", "A"); List <BOCustomer> response = mapper.MapEFToBO(new List <Customer>() { entity }); response.Count.Should().Be(1); }
public void MapEFToBO() { var mapper = new DALCustomerMapper(); Customer entity = new Customer(); entity.SetProperties("A", "A", 1, "A", "A"); BOCustomer 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.Phone.Should().Be("A"); }
public void MapEFToBO() { var mapper = new DALCustomerMapper(); Customer entity = new Customer(); entity.SetProperties("A", 1, DateTime.Parse("1/1/1987 12:00:00 AM"), 1, Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da"), 1, 1); BOCustomer response = mapper.MapEFToBO(entity); 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); }