public void MapEntityToModelList() { var mapper = new DALCustomerMapper(); Customer item = new Customer(); item.SetProperties(1, "A", "A", "A", "A", "A"); List <ApiCustomerServerResponseModel> response = mapper.MapEntityToModel(new List <Customer>() { { item } }); response.Count.Should().Be(1); }
public void MapEntityToModel() { var mapper = new DALCustomerMapper(); Customer item = new Customer(); item.SetProperties(1, "A", "A", "A", "A", "A"); ApiCustomerServerResponseModel response = mapper.MapEntityToModel(item); response.Email.Should().Be("A"); response.FirstName.Should().Be("A"); response.Id.Should().Be(1); response.LastName.Should().Be("A"); response.Notes.Should().Be("A"); response.Phone.Should().Be("A"); }