public void MapBOToModelList() { var mapper = new BOLStudentMapper(); BOStudent bo = new BOStudent(); bo.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A", true, 1, "A", true, "A", "A", true, 1); List <ApiStudentResponseModel> response = mapper.MapBOToModel(new List <BOStudent>() { { bo } }); response.Count.Should().Be(1); }
public void MapBOToModel() { var mapper = new BOLStudentMapper(); BOStudent bo = new BOStudent(); bo.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A", true, 1, "A", true, "A", "A", true, 1); ApiStudentResponseModel response = mapper.MapBOToModel(bo); response.Birthday.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Email.Should().Be("A"); response.EmailRemindersEnabled.Should().Be(true); response.FamilyId.Should().Be(1); response.FirstName.Should().Be("A"); response.Id.Should().Be(1); response.IsAdult.Should().Be(true); response.LastName.Should().Be("A"); response.Phone.Should().Be("A"); response.SmsRemindersEnabled.Should().Be(true); response.UserId.Should().Be(1); }