public void MapModelToBO() { var mapper = new BOLTeamMapper(); ApiTeamRequestModel model = new ApiTeamRequestModel(); model.SetProperties("A", 1); BOTeam response = mapper.MapModelToBO(1, model); response.Name.Should().Be("A"); response.OrganizationId.Should().Be(1); }
public void MapModelToBO() { var mapper = new BOLTeamMapper(); ApiTeamRequestModel model = new ApiTeamRequestModel(); model.SetProperties("A", "A", "A", "A", "A", "A", "A", "A"); BOTeam response = mapper.MapModelToBO("A", model); response.EnvironmentIds.Should().Be("A"); response.JSON.Should().Be("A"); response.MemberUserIds.Should().Be("A"); response.Name.Should().Be("A"); response.ProjectGroupIds.Should().Be("A"); response.ProjectIds.Should().Be("A"); response.TenantIds.Should().Be("A"); response.TenantTags.Should().Be("A"); }