public virtual ApiAccountResponseModel MapBOToModel( BOAccount boAccount) { var model = new ApiAccountResponseModel(); model.SetProperties(boAccount.Id, boAccount.AccountType, boAccount.EnvironmentIds, boAccount.JSON, boAccount.Name, boAccount.TenantIds, boAccount.TenantTags); return(model); }
public void MapResponseToRequest() { var mapper = new ApiAccountModelMapper(); var model = new ApiAccountResponseModel(); model.SetProperties("A", "A", "A", "A", "A", "A", "A"); ApiAccountRequestModel response = mapper.MapResponseToRequest(model); response.AccountType.Should().Be("A"); response.EnvironmentIds.Should().Be("A"); response.JSON.Should().Be("A"); response.Name.Should().Be("A"); response.TenantIds.Should().Be("A"); response.TenantTags.Should().Be("A"); }