// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.devcenter.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.devcenter.fluent.models.ProjectProperties;
import org.junit.jupiter.api.Assertions;

public final class ProjectPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ProjectProperties model =
            BinaryData
                .fromString(
                    "{\"provisioningState\":\"Updated\",\"devCenterUri\":\"ol\",\"devCenterId\":\"fpsalgbqu\",\"description\":\"gjyjgzjaoyfhrtxi\",\"maxDevBoxesPerUser\":1620894991}")
                .toObject(ProjectProperties.class);
        Assertions.assertEquals("fpsalgbqu", model.devCenterId());
        Assertions.assertEquals("gjyjgzjaoyfhrtxi", model.description());
        Assertions.assertEquals(1620894991, model.maxDevBoxesPerUser());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ProjectProperties model =
            new ProjectProperties()
                .withDevCenterId("fpsalgbqu")
                .withDescription("gjyjgzjaoyfhrtxi")
                .withMaxDevBoxesPerUser(1620894991);
        model = BinaryData.fromObject(model).toObject(ProjectProperties.class);
        Assertions.assertEquals("fpsalgbqu", model.devCenterId());
        Assertions.assertEquals("gjyjgzjaoyfhrtxi", model.description());
        Assertions.assertEquals(1620894991, model.maxDevBoxesPerUser());
    }
}
