public void MapModelToBO() { var mapper = new BOLAdminMapper(); ApiAdminRequestModel model = new ApiAdminRequestModel(); model.SetProperties(DateTime.Parse("1/1/1987 12:00:00 AM"), "A", "A", "A", "A", 1); BOAdmin response = mapper.MapModelToBO(1, model); response.Birthday.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM")); response.Email.Should().Be("A"); response.FirstName.Should().Be("A"); response.LastName.Should().Be("A"); response.Phone.Should().Be("A"); response.UserId.Should().Be(1); }
public void MapModelToBO() { var mapper = new BOLAdminMapper(); ApiAdminRequestModel model = new ApiAdminRequestModel(); model.SetProperties("A", "A", "A", "A", "A", "A"); BOAdmin response = mapper.MapModelToBO(1, model); response.Email.Should().Be("A"); response.FirstName.Should().Be("A"); response.LastName.Should().Be("A"); response.Password.Should().Be("A"); response.Phone.Should().Be("A"); response.Username.Should().Be("A"); }