public void MapModelToBO() { var mapper = new BOLSpaceMapper(); ApiSpaceRequestModel model = new ApiSpaceRequestModel(); model.SetProperties("A", "A"); BOSpace response = mapper.MapModelToBO(1, model); response.Description.Should().Be("A"); response.Name.Should().Be("A"); }
public void MapBOToModel() { var mapper = new BOLSpaceMapper(); BOSpace bo = new BOSpace(); bo.SetProperties(1, "A", "A"); ApiSpaceResponseModel response = mapper.MapBOToModel(bo); response.Description.Should().Be("A"); response.Id.Should().Be(1); response.Name.Should().Be("A"); }
public void MapBOToModelList() { var mapper = new BOLSpaceMapper(); BOSpace bo = new BOSpace(); bo.SetProperties(1, "A", "A", 1); List <ApiSpaceResponseModel> response = mapper.MapBOToModel(new List <BOSpace>() { { bo } }); response.Count.Should().Be(1); }