// Code generated by azure-service-operator-codegen. DO NOT EDIT.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package v1api20240901

import (
	"encoding/json"
	storage "github.com/Azure/azure-service-operator/v2/api/containerservice/v1api20240901/storage"
	"github.com/google/go-cmp/cmp"
	"github.com/google/go-cmp/cmp/cmpopts"
	"github.com/kr/pretty"
	"github.com/kylelemons/godebug/diff"
	"github.com/leanovate/gopter"
	"github.com/leanovate/gopter/gen"
	"github.com/leanovate/gopter/prop"
	"os"
	"reflect"
	"testing"
)

func Test_AbsoluteMonthlySchedule_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from AbsoluteMonthlySchedule to AbsoluteMonthlySchedule via AssignProperties_To_AbsoluteMonthlySchedule & AssignProperties_From_AbsoluteMonthlySchedule returns original",
		prop.ForAll(RunPropertyAssignmentTestForAbsoluteMonthlySchedule, AbsoluteMonthlyScheduleGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForAbsoluteMonthlySchedule tests if a specific instance of AbsoluteMonthlySchedule can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForAbsoluteMonthlySchedule(subject AbsoluteMonthlySchedule) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.AbsoluteMonthlySchedule
	err := copied.AssignProperties_To_AbsoluteMonthlySchedule(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual AbsoluteMonthlySchedule
	err = actual.AssignProperties_From_AbsoluteMonthlySchedule(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_AbsoluteMonthlySchedule_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 100
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of AbsoluteMonthlySchedule via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForAbsoluteMonthlySchedule, AbsoluteMonthlyScheduleGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForAbsoluteMonthlySchedule runs a test to see if a specific instance of AbsoluteMonthlySchedule round trips to JSON and back losslessly
func RunJSONSerializationTestForAbsoluteMonthlySchedule(subject AbsoluteMonthlySchedule) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual AbsoluteMonthlySchedule
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of AbsoluteMonthlySchedule instances for property testing - lazily instantiated by
// AbsoluteMonthlyScheduleGenerator()
var absoluteMonthlyScheduleGenerator gopter.Gen

// AbsoluteMonthlyScheduleGenerator returns a generator of AbsoluteMonthlySchedule instances for property testing.
func AbsoluteMonthlyScheduleGenerator() gopter.Gen {
	if absoluteMonthlyScheduleGenerator != nil {
		return absoluteMonthlyScheduleGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForAbsoluteMonthlySchedule(generators)
	absoluteMonthlyScheduleGenerator = gen.Struct(reflect.TypeOf(AbsoluteMonthlySchedule{}), generators)

	return absoluteMonthlyScheduleGenerator
}

// AddIndependentPropertyGeneratorsForAbsoluteMonthlySchedule is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForAbsoluteMonthlySchedule(gens map[string]gopter.Gen) {
	gens["DayOfMonth"] = gen.PtrOf(gen.Int())
	gens["IntervalMonths"] = gen.PtrOf(gen.Int())
}

func Test_AbsoluteMonthlySchedule_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from AbsoluteMonthlySchedule_STATUS to AbsoluteMonthlySchedule_STATUS via AssignProperties_To_AbsoluteMonthlySchedule_STATUS & AssignProperties_From_AbsoluteMonthlySchedule_STATUS returns original",
		prop.ForAll(RunPropertyAssignmentTestForAbsoluteMonthlySchedule_STATUS, AbsoluteMonthlySchedule_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForAbsoluteMonthlySchedule_STATUS tests if a specific instance of AbsoluteMonthlySchedule_STATUS can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForAbsoluteMonthlySchedule_STATUS(subject AbsoluteMonthlySchedule_STATUS) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.AbsoluteMonthlySchedule_STATUS
	err := copied.AssignProperties_To_AbsoluteMonthlySchedule_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual AbsoluteMonthlySchedule_STATUS
	err = actual.AssignProperties_From_AbsoluteMonthlySchedule_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_AbsoluteMonthlySchedule_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of AbsoluteMonthlySchedule_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForAbsoluteMonthlySchedule_STATUS, AbsoluteMonthlySchedule_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForAbsoluteMonthlySchedule_STATUS runs a test to see if a specific instance of AbsoluteMonthlySchedule_STATUS round trips to JSON and back losslessly
func RunJSONSerializationTestForAbsoluteMonthlySchedule_STATUS(subject AbsoluteMonthlySchedule_STATUS) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual AbsoluteMonthlySchedule_STATUS
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of AbsoluteMonthlySchedule_STATUS instances for property testing - lazily instantiated by
// AbsoluteMonthlySchedule_STATUSGenerator()
var absoluteMonthlySchedule_STATUSGenerator gopter.Gen

// AbsoluteMonthlySchedule_STATUSGenerator returns a generator of AbsoluteMonthlySchedule_STATUS instances for property testing.
func AbsoluteMonthlySchedule_STATUSGenerator() gopter.Gen {
	if absoluteMonthlySchedule_STATUSGenerator != nil {
		return absoluteMonthlySchedule_STATUSGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForAbsoluteMonthlySchedule_STATUS(generators)
	absoluteMonthlySchedule_STATUSGenerator = gen.Struct(reflect.TypeOf(AbsoluteMonthlySchedule_STATUS{}), generators)

	return absoluteMonthlySchedule_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForAbsoluteMonthlySchedule_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForAbsoluteMonthlySchedule_STATUS(gens map[string]gopter.Gen) {
	gens["DayOfMonth"] = gen.PtrOf(gen.Int())
	gens["IntervalMonths"] = gen.PtrOf(gen.Int())
}

func Test_DailySchedule_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from DailySchedule to DailySchedule via AssignProperties_To_DailySchedule & AssignProperties_From_DailySchedule returns original",
		prop.ForAll(RunPropertyAssignmentTestForDailySchedule, DailyScheduleGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForDailySchedule tests if a specific instance of DailySchedule can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForDailySchedule(subject DailySchedule) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.DailySchedule
	err := copied.AssignProperties_To_DailySchedule(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual DailySchedule
	err = actual.AssignProperties_From_DailySchedule(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_DailySchedule_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 100
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of DailySchedule via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForDailySchedule, DailyScheduleGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForDailySchedule runs a test to see if a specific instance of DailySchedule round trips to JSON and back losslessly
func RunJSONSerializationTestForDailySchedule(subject DailySchedule) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual DailySchedule
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of DailySchedule instances for property testing - lazily instantiated by DailyScheduleGenerator()
var dailyScheduleGenerator gopter.Gen

// DailyScheduleGenerator returns a generator of DailySchedule instances for property testing.
func DailyScheduleGenerator() gopter.Gen {
	if dailyScheduleGenerator != nil {
		return dailyScheduleGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForDailySchedule(generators)
	dailyScheduleGenerator = gen.Struct(reflect.TypeOf(DailySchedule{}), generators)

	return dailyScheduleGenerator
}

// AddIndependentPropertyGeneratorsForDailySchedule is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForDailySchedule(gens map[string]gopter.Gen) {
	gens["IntervalDays"] = gen.PtrOf(gen.Int())
}

func Test_DailySchedule_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from DailySchedule_STATUS to DailySchedule_STATUS via AssignProperties_To_DailySchedule_STATUS & AssignProperties_From_DailySchedule_STATUS returns original",
		prop.ForAll(RunPropertyAssignmentTestForDailySchedule_STATUS, DailySchedule_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForDailySchedule_STATUS tests if a specific instance of DailySchedule_STATUS can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForDailySchedule_STATUS(subject DailySchedule_STATUS) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.DailySchedule_STATUS
	err := copied.AssignProperties_To_DailySchedule_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual DailySchedule_STATUS
	err = actual.AssignProperties_From_DailySchedule_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_DailySchedule_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of DailySchedule_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForDailySchedule_STATUS, DailySchedule_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForDailySchedule_STATUS runs a test to see if a specific instance of DailySchedule_STATUS round trips to JSON and back losslessly
func RunJSONSerializationTestForDailySchedule_STATUS(subject DailySchedule_STATUS) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual DailySchedule_STATUS
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of DailySchedule_STATUS instances for property testing - lazily instantiated by
// DailySchedule_STATUSGenerator()
var dailySchedule_STATUSGenerator gopter.Gen

// DailySchedule_STATUSGenerator returns a generator of DailySchedule_STATUS instances for property testing.
func DailySchedule_STATUSGenerator() gopter.Gen {
	if dailySchedule_STATUSGenerator != nil {
		return dailySchedule_STATUSGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForDailySchedule_STATUS(generators)
	dailySchedule_STATUSGenerator = gen.Struct(reflect.TypeOf(DailySchedule_STATUS{}), generators)

	return dailySchedule_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForDailySchedule_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForDailySchedule_STATUS(gens map[string]gopter.Gen) {
	gens["IntervalDays"] = gen.PtrOf(gen.Int())
}

func Test_DateSpan_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from DateSpan to DateSpan via AssignProperties_To_DateSpan & AssignProperties_From_DateSpan returns original",
		prop.ForAll(RunPropertyAssignmentTestForDateSpan, DateSpanGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForDateSpan tests if a specific instance of DateSpan can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForDateSpan(subject DateSpan) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.DateSpan
	err := copied.AssignProperties_To_DateSpan(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual DateSpan
	err = actual.AssignProperties_From_DateSpan(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_DateSpan_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 100
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of DateSpan via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForDateSpan, DateSpanGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForDateSpan runs a test to see if a specific instance of DateSpan round trips to JSON and back losslessly
func RunJSONSerializationTestForDateSpan(subject DateSpan) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual DateSpan
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of DateSpan instances for property testing - lazily instantiated by DateSpanGenerator()
var dateSpanGenerator gopter.Gen

// DateSpanGenerator returns a generator of DateSpan instances for property testing.
func DateSpanGenerator() gopter.Gen {
	if dateSpanGenerator != nil {
		return dateSpanGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForDateSpan(generators)
	dateSpanGenerator = gen.Struct(reflect.TypeOf(DateSpan{}), generators)

	return dateSpanGenerator
}

// AddIndependentPropertyGeneratorsForDateSpan is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForDateSpan(gens map[string]gopter.Gen) {
	gens["End"] = gen.PtrOf(gen.AlphaString())
	gens["Start"] = gen.PtrOf(gen.AlphaString())
}

func Test_DateSpan_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from DateSpan_STATUS to DateSpan_STATUS via AssignProperties_To_DateSpan_STATUS & AssignProperties_From_DateSpan_STATUS returns original",
		prop.ForAll(RunPropertyAssignmentTestForDateSpan_STATUS, DateSpan_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForDateSpan_STATUS tests if a specific instance of DateSpan_STATUS can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForDateSpan_STATUS(subject DateSpan_STATUS) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.DateSpan_STATUS
	err := copied.AssignProperties_To_DateSpan_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual DateSpan_STATUS
	err = actual.AssignProperties_From_DateSpan_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_DateSpan_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of DateSpan_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForDateSpan_STATUS, DateSpan_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForDateSpan_STATUS runs a test to see if a specific instance of DateSpan_STATUS round trips to JSON and back losslessly
func RunJSONSerializationTestForDateSpan_STATUS(subject DateSpan_STATUS) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual DateSpan_STATUS
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of DateSpan_STATUS instances for property testing - lazily instantiated by DateSpan_STATUSGenerator()
var dateSpan_STATUSGenerator gopter.Gen

// DateSpan_STATUSGenerator returns a generator of DateSpan_STATUS instances for property testing.
func DateSpan_STATUSGenerator() gopter.Gen {
	if dateSpan_STATUSGenerator != nil {
		return dateSpan_STATUSGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForDateSpan_STATUS(generators)
	dateSpan_STATUSGenerator = gen.Struct(reflect.TypeOf(DateSpan_STATUS{}), generators)

	return dateSpan_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForDateSpan_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForDateSpan_STATUS(gens map[string]gopter.Gen) {
	gens["End"] = gen.PtrOf(gen.AlphaString())
	gens["Start"] = gen.PtrOf(gen.AlphaString())
}

func Test_MaintenanceConfiguration_WhenConvertedToHub_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	parameters.MinSuccessfulTests = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from MaintenanceConfiguration to hub returns original",
		prop.ForAll(RunResourceConversionTestForMaintenanceConfiguration, MaintenanceConfigurationGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunResourceConversionTestForMaintenanceConfiguration tests if a specific instance of MaintenanceConfiguration round trips to the hub storage version and back losslessly
func RunResourceConversionTestForMaintenanceConfiguration(subject MaintenanceConfiguration) string {
	// Copy subject to make sure conversion doesn't modify it
	copied := subject.DeepCopy()

	// Convert to our hub version
	var hub storage.MaintenanceConfiguration
	err := copied.ConvertTo(&hub)
	if err != nil {
		return err.Error()
	}

	// Convert from our hub version
	var actual MaintenanceConfiguration
	err = actual.ConvertFrom(&hub)
	if err != nil {
		return err.Error()
	}

	// Compare actual with what we started with
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_MaintenanceConfiguration_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from MaintenanceConfiguration to MaintenanceConfiguration via AssignProperties_To_MaintenanceConfiguration & AssignProperties_From_MaintenanceConfiguration returns original",
		prop.ForAll(RunPropertyAssignmentTestForMaintenanceConfiguration, MaintenanceConfigurationGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForMaintenanceConfiguration tests if a specific instance of MaintenanceConfiguration can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForMaintenanceConfiguration(subject MaintenanceConfiguration) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.MaintenanceConfiguration
	err := copied.AssignProperties_To_MaintenanceConfiguration(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual MaintenanceConfiguration
	err = actual.AssignProperties_From_MaintenanceConfiguration(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_MaintenanceConfiguration_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 20
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of MaintenanceConfiguration via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForMaintenanceConfiguration, MaintenanceConfigurationGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForMaintenanceConfiguration runs a test to see if a specific instance of MaintenanceConfiguration round trips to JSON and back losslessly
func RunJSONSerializationTestForMaintenanceConfiguration(subject MaintenanceConfiguration) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual MaintenanceConfiguration
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of MaintenanceConfiguration instances for property testing - lazily instantiated by
// MaintenanceConfigurationGenerator()
var maintenanceConfigurationGenerator gopter.Gen

// MaintenanceConfigurationGenerator returns a generator of MaintenanceConfiguration instances for property testing.
func MaintenanceConfigurationGenerator() gopter.Gen {
	if maintenanceConfigurationGenerator != nil {
		return maintenanceConfigurationGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddRelatedPropertyGeneratorsForMaintenanceConfiguration(generators)
	maintenanceConfigurationGenerator = gen.Struct(reflect.TypeOf(MaintenanceConfiguration{}), generators)

	return maintenanceConfigurationGenerator
}

// AddRelatedPropertyGeneratorsForMaintenanceConfiguration is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForMaintenanceConfiguration(gens map[string]gopter.Gen) {
	gens["Spec"] = MaintenanceConfiguration_SpecGenerator()
	gens["Status"] = MaintenanceConfiguration_STATUSGenerator()
}

func Test_MaintenanceConfigurationOperatorSpec_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from MaintenanceConfigurationOperatorSpec to MaintenanceConfigurationOperatorSpec via AssignProperties_To_MaintenanceConfigurationOperatorSpec & AssignProperties_From_MaintenanceConfigurationOperatorSpec returns original",
		prop.ForAll(RunPropertyAssignmentTestForMaintenanceConfigurationOperatorSpec, MaintenanceConfigurationOperatorSpecGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForMaintenanceConfigurationOperatorSpec tests if a specific instance of MaintenanceConfigurationOperatorSpec can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForMaintenanceConfigurationOperatorSpec(subject MaintenanceConfigurationOperatorSpec) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.MaintenanceConfigurationOperatorSpec
	err := copied.AssignProperties_To_MaintenanceConfigurationOperatorSpec(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual MaintenanceConfigurationOperatorSpec
	err = actual.AssignProperties_From_MaintenanceConfigurationOperatorSpec(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_MaintenanceConfigurationOperatorSpec_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 100
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of MaintenanceConfigurationOperatorSpec via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForMaintenanceConfigurationOperatorSpec, MaintenanceConfigurationOperatorSpecGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForMaintenanceConfigurationOperatorSpec runs a test to see if a specific instance of MaintenanceConfigurationOperatorSpec round trips to JSON and back losslessly
func RunJSONSerializationTestForMaintenanceConfigurationOperatorSpec(subject MaintenanceConfigurationOperatorSpec) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual MaintenanceConfigurationOperatorSpec
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of MaintenanceConfigurationOperatorSpec instances for property testing - lazily instantiated by
// MaintenanceConfigurationOperatorSpecGenerator()
var maintenanceConfigurationOperatorSpecGenerator gopter.Gen

// MaintenanceConfigurationOperatorSpecGenerator returns a generator of MaintenanceConfigurationOperatorSpec instances for property testing.
func MaintenanceConfigurationOperatorSpecGenerator() gopter.Gen {
	if maintenanceConfigurationOperatorSpecGenerator != nil {
		return maintenanceConfigurationOperatorSpecGenerator
	}

	generators := make(map[string]gopter.Gen)
	maintenanceConfigurationOperatorSpecGenerator = gen.Struct(reflect.TypeOf(MaintenanceConfigurationOperatorSpec{}), generators)

	return maintenanceConfigurationOperatorSpecGenerator
}

func Test_MaintenanceConfiguration_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from MaintenanceConfiguration_STATUS to MaintenanceConfiguration_STATUS via AssignProperties_To_MaintenanceConfiguration_STATUS & AssignProperties_From_MaintenanceConfiguration_STATUS returns original",
		prop.ForAll(RunPropertyAssignmentTestForMaintenanceConfiguration_STATUS, MaintenanceConfiguration_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForMaintenanceConfiguration_STATUS tests if a specific instance of MaintenanceConfiguration_STATUS can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForMaintenanceConfiguration_STATUS(subject MaintenanceConfiguration_STATUS) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.MaintenanceConfiguration_STATUS
	err := copied.AssignProperties_To_MaintenanceConfiguration_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual MaintenanceConfiguration_STATUS
	err = actual.AssignProperties_From_MaintenanceConfiguration_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_MaintenanceConfiguration_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of MaintenanceConfiguration_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForMaintenanceConfiguration_STATUS, MaintenanceConfiguration_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForMaintenanceConfiguration_STATUS runs a test to see if a specific instance of MaintenanceConfiguration_STATUS round trips to JSON and back losslessly
func RunJSONSerializationTestForMaintenanceConfiguration_STATUS(subject MaintenanceConfiguration_STATUS) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual MaintenanceConfiguration_STATUS
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of MaintenanceConfiguration_STATUS instances for property testing - lazily instantiated by
// MaintenanceConfiguration_STATUSGenerator()
var maintenanceConfiguration_STATUSGenerator gopter.Gen

// MaintenanceConfiguration_STATUSGenerator returns a generator of MaintenanceConfiguration_STATUS instances for property testing.
// We first initialize maintenanceConfiguration_STATUSGenerator with a simplified generator based on the
// fields with primitive types then replacing it with a more complex one that also handles complex fields
// to ensure any cycles in the object graph properly terminate.
func MaintenanceConfiguration_STATUSGenerator() gopter.Gen {
	if maintenanceConfiguration_STATUSGenerator != nil {
		return maintenanceConfiguration_STATUSGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForMaintenanceConfiguration_STATUS(generators)
	maintenanceConfiguration_STATUSGenerator = gen.Struct(reflect.TypeOf(MaintenanceConfiguration_STATUS{}), generators)

	// The above call to gen.Struct() captures the map, so create a new one
	generators = make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForMaintenanceConfiguration_STATUS(generators)
	AddRelatedPropertyGeneratorsForMaintenanceConfiguration_STATUS(generators)
	maintenanceConfiguration_STATUSGenerator = gen.Struct(reflect.TypeOf(MaintenanceConfiguration_STATUS{}), generators)

	return maintenanceConfiguration_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForMaintenanceConfiguration_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForMaintenanceConfiguration_STATUS(gens map[string]gopter.Gen) {
	gens["Id"] = gen.PtrOf(gen.AlphaString())
	gens["Name"] = gen.PtrOf(gen.AlphaString())
	gens["Type"] = gen.PtrOf(gen.AlphaString())
}

// AddRelatedPropertyGeneratorsForMaintenanceConfiguration_STATUS is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForMaintenanceConfiguration_STATUS(gens map[string]gopter.Gen) {
	gens["MaintenanceWindow"] = gen.PtrOf(MaintenanceWindow_STATUSGenerator())
	gens["NotAllowedTime"] = gen.SliceOf(TimeSpan_STATUSGenerator())
	gens["SystemData"] = gen.PtrOf(SystemData_STATUSGenerator())
	gens["TimeInWeek"] = gen.SliceOf(TimeInWeek_STATUSGenerator())
}

func Test_MaintenanceConfiguration_Spec_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from MaintenanceConfiguration_Spec to MaintenanceConfiguration_Spec via AssignProperties_To_MaintenanceConfiguration_Spec & AssignProperties_From_MaintenanceConfiguration_Spec returns original",
		prop.ForAll(RunPropertyAssignmentTestForMaintenanceConfiguration_Spec, MaintenanceConfiguration_SpecGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForMaintenanceConfiguration_Spec tests if a specific instance of MaintenanceConfiguration_Spec can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForMaintenanceConfiguration_Spec(subject MaintenanceConfiguration_Spec) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.MaintenanceConfiguration_Spec
	err := copied.AssignProperties_To_MaintenanceConfiguration_Spec(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual MaintenanceConfiguration_Spec
	err = actual.AssignProperties_From_MaintenanceConfiguration_Spec(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_MaintenanceConfiguration_Spec_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of MaintenanceConfiguration_Spec via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForMaintenanceConfiguration_Spec, MaintenanceConfiguration_SpecGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForMaintenanceConfiguration_Spec runs a test to see if a specific instance of MaintenanceConfiguration_Spec round trips to JSON and back losslessly
func RunJSONSerializationTestForMaintenanceConfiguration_Spec(subject MaintenanceConfiguration_Spec) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual MaintenanceConfiguration_Spec
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of MaintenanceConfiguration_Spec instances for property testing - lazily instantiated by
// MaintenanceConfiguration_SpecGenerator()
var maintenanceConfiguration_SpecGenerator gopter.Gen

// MaintenanceConfiguration_SpecGenerator returns a generator of MaintenanceConfiguration_Spec instances for property testing.
// We first initialize maintenanceConfiguration_SpecGenerator with a simplified generator based on the
// fields with primitive types then replacing it with a more complex one that also handles complex fields
// to ensure any cycles in the object graph properly terminate.
func MaintenanceConfiguration_SpecGenerator() gopter.Gen {
	if maintenanceConfiguration_SpecGenerator != nil {
		return maintenanceConfiguration_SpecGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForMaintenanceConfiguration_Spec(generators)
	maintenanceConfiguration_SpecGenerator = gen.Struct(reflect.TypeOf(MaintenanceConfiguration_Spec{}), generators)

	// The above call to gen.Struct() captures the map, so create a new one
	generators = make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForMaintenanceConfiguration_Spec(generators)
	AddRelatedPropertyGeneratorsForMaintenanceConfiguration_Spec(generators)
	maintenanceConfiguration_SpecGenerator = gen.Struct(reflect.TypeOf(MaintenanceConfiguration_Spec{}), generators)

	return maintenanceConfiguration_SpecGenerator
}

// AddIndependentPropertyGeneratorsForMaintenanceConfiguration_Spec is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForMaintenanceConfiguration_Spec(gens map[string]gopter.Gen) {
	gens["AzureName"] = gen.AlphaString()
}

// AddRelatedPropertyGeneratorsForMaintenanceConfiguration_Spec is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForMaintenanceConfiguration_Spec(gens map[string]gopter.Gen) {
	gens["MaintenanceWindow"] = gen.PtrOf(MaintenanceWindowGenerator())
	gens["NotAllowedTime"] = gen.SliceOf(TimeSpanGenerator())
	gens["OperatorSpec"] = gen.PtrOf(MaintenanceConfigurationOperatorSpecGenerator())
	gens["TimeInWeek"] = gen.SliceOf(TimeInWeekGenerator())
}

func Test_MaintenanceWindow_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from MaintenanceWindow to MaintenanceWindow via AssignProperties_To_MaintenanceWindow & AssignProperties_From_MaintenanceWindow returns original",
		prop.ForAll(RunPropertyAssignmentTestForMaintenanceWindow, MaintenanceWindowGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForMaintenanceWindow tests if a specific instance of MaintenanceWindow can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForMaintenanceWindow(subject MaintenanceWindow) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.MaintenanceWindow
	err := copied.AssignProperties_To_MaintenanceWindow(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual MaintenanceWindow
	err = actual.AssignProperties_From_MaintenanceWindow(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_MaintenanceWindow_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 100
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of MaintenanceWindow via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForMaintenanceWindow, MaintenanceWindowGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForMaintenanceWindow runs a test to see if a specific instance of MaintenanceWindow round trips to JSON and back losslessly
func RunJSONSerializationTestForMaintenanceWindow(subject MaintenanceWindow) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual MaintenanceWindow
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of MaintenanceWindow instances for property testing - lazily instantiated by MaintenanceWindowGenerator()
var maintenanceWindowGenerator gopter.Gen

// MaintenanceWindowGenerator returns a generator of MaintenanceWindow instances for property testing.
// We first initialize maintenanceWindowGenerator with a simplified generator based on the
// fields with primitive types then replacing it with a more complex one that also handles complex fields
// to ensure any cycles in the object graph properly terminate.
func MaintenanceWindowGenerator() gopter.Gen {
	if maintenanceWindowGenerator != nil {
		return maintenanceWindowGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForMaintenanceWindow(generators)
	maintenanceWindowGenerator = gen.Struct(reflect.TypeOf(MaintenanceWindow{}), generators)

	// The above call to gen.Struct() captures the map, so create a new one
	generators = make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForMaintenanceWindow(generators)
	AddRelatedPropertyGeneratorsForMaintenanceWindow(generators)
	maintenanceWindowGenerator = gen.Struct(reflect.TypeOf(MaintenanceWindow{}), generators)

	return maintenanceWindowGenerator
}

// AddIndependentPropertyGeneratorsForMaintenanceWindow is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForMaintenanceWindow(gens map[string]gopter.Gen) {
	gens["DurationHours"] = gen.PtrOf(gen.Int())
	gens["StartDate"] = gen.PtrOf(gen.AlphaString())
	gens["StartTime"] = gen.PtrOf(gen.AlphaString())
	gens["UtcOffset"] = gen.PtrOf(gen.AlphaString())
}

// AddRelatedPropertyGeneratorsForMaintenanceWindow is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForMaintenanceWindow(gens map[string]gopter.Gen) {
	gens["NotAllowedDates"] = gen.SliceOf(DateSpanGenerator())
	gens["Schedule"] = gen.PtrOf(ScheduleGenerator())
}

func Test_MaintenanceWindow_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from MaintenanceWindow_STATUS to MaintenanceWindow_STATUS via AssignProperties_To_MaintenanceWindow_STATUS & AssignProperties_From_MaintenanceWindow_STATUS returns original",
		prop.ForAll(RunPropertyAssignmentTestForMaintenanceWindow_STATUS, MaintenanceWindow_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForMaintenanceWindow_STATUS tests if a specific instance of MaintenanceWindow_STATUS can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForMaintenanceWindow_STATUS(subject MaintenanceWindow_STATUS) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.MaintenanceWindow_STATUS
	err := copied.AssignProperties_To_MaintenanceWindow_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual MaintenanceWindow_STATUS
	err = actual.AssignProperties_From_MaintenanceWindow_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_MaintenanceWindow_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of MaintenanceWindow_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForMaintenanceWindow_STATUS, MaintenanceWindow_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForMaintenanceWindow_STATUS runs a test to see if a specific instance of MaintenanceWindow_STATUS round trips to JSON and back losslessly
func RunJSONSerializationTestForMaintenanceWindow_STATUS(subject MaintenanceWindow_STATUS) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual MaintenanceWindow_STATUS
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of MaintenanceWindow_STATUS instances for property testing - lazily instantiated by
// MaintenanceWindow_STATUSGenerator()
var maintenanceWindow_STATUSGenerator gopter.Gen

// MaintenanceWindow_STATUSGenerator returns a generator of MaintenanceWindow_STATUS instances for property testing.
// We first initialize maintenanceWindow_STATUSGenerator with a simplified generator based on the
// fields with primitive types then replacing it with a more complex one that also handles complex fields
// to ensure any cycles in the object graph properly terminate.
func MaintenanceWindow_STATUSGenerator() gopter.Gen {
	if maintenanceWindow_STATUSGenerator != nil {
		return maintenanceWindow_STATUSGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForMaintenanceWindow_STATUS(generators)
	maintenanceWindow_STATUSGenerator = gen.Struct(reflect.TypeOf(MaintenanceWindow_STATUS{}), generators)

	// The above call to gen.Struct() captures the map, so create a new one
	generators = make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForMaintenanceWindow_STATUS(generators)
	AddRelatedPropertyGeneratorsForMaintenanceWindow_STATUS(generators)
	maintenanceWindow_STATUSGenerator = gen.Struct(reflect.TypeOf(MaintenanceWindow_STATUS{}), generators)

	return maintenanceWindow_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForMaintenanceWindow_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForMaintenanceWindow_STATUS(gens map[string]gopter.Gen) {
	gens["DurationHours"] = gen.PtrOf(gen.Int())
	gens["StartDate"] = gen.PtrOf(gen.AlphaString())
	gens["StartTime"] = gen.PtrOf(gen.AlphaString())
	gens["UtcOffset"] = gen.PtrOf(gen.AlphaString())
}

// AddRelatedPropertyGeneratorsForMaintenanceWindow_STATUS is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForMaintenanceWindow_STATUS(gens map[string]gopter.Gen) {
	gens["NotAllowedDates"] = gen.SliceOf(DateSpan_STATUSGenerator())
	gens["Schedule"] = gen.PtrOf(Schedule_STATUSGenerator())
}

func Test_RelativeMonthlySchedule_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from RelativeMonthlySchedule to RelativeMonthlySchedule via AssignProperties_To_RelativeMonthlySchedule & AssignProperties_From_RelativeMonthlySchedule returns original",
		prop.ForAll(RunPropertyAssignmentTestForRelativeMonthlySchedule, RelativeMonthlyScheduleGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForRelativeMonthlySchedule tests if a specific instance of RelativeMonthlySchedule can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForRelativeMonthlySchedule(subject RelativeMonthlySchedule) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.RelativeMonthlySchedule
	err := copied.AssignProperties_To_RelativeMonthlySchedule(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual RelativeMonthlySchedule
	err = actual.AssignProperties_From_RelativeMonthlySchedule(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_RelativeMonthlySchedule_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 100
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of RelativeMonthlySchedule via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForRelativeMonthlySchedule, RelativeMonthlyScheduleGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForRelativeMonthlySchedule runs a test to see if a specific instance of RelativeMonthlySchedule round trips to JSON and back losslessly
func RunJSONSerializationTestForRelativeMonthlySchedule(subject RelativeMonthlySchedule) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual RelativeMonthlySchedule
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of RelativeMonthlySchedule instances for property testing - lazily instantiated by
// RelativeMonthlyScheduleGenerator()
var relativeMonthlyScheduleGenerator gopter.Gen

// RelativeMonthlyScheduleGenerator returns a generator of RelativeMonthlySchedule instances for property testing.
func RelativeMonthlyScheduleGenerator() gopter.Gen {
	if relativeMonthlyScheduleGenerator != nil {
		return relativeMonthlyScheduleGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForRelativeMonthlySchedule(generators)
	relativeMonthlyScheduleGenerator = gen.Struct(reflect.TypeOf(RelativeMonthlySchedule{}), generators)

	return relativeMonthlyScheduleGenerator
}

// AddIndependentPropertyGeneratorsForRelativeMonthlySchedule is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForRelativeMonthlySchedule(gens map[string]gopter.Gen) {
	gens["DayOfWeek"] = gen.PtrOf(gen.OneConstOf(
		WeekDay_Friday,
		WeekDay_Monday,
		WeekDay_Saturday,
		WeekDay_Sunday,
		WeekDay_Thursday,
		WeekDay_Tuesday,
		WeekDay_Wednesday))
	gens["IntervalMonths"] = gen.PtrOf(gen.Int())
	gens["WeekIndex"] = gen.PtrOf(gen.OneConstOf(
		RelativeMonthlySchedule_WeekIndex_First,
		RelativeMonthlySchedule_WeekIndex_Fourth,
		RelativeMonthlySchedule_WeekIndex_Last,
		RelativeMonthlySchedule_WeekIndex_Second,
		RelativeMonthlySchedule_WeekIndex_Third))
}

func Test_RelativeMonthlySchedule_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from RelativeMonthlySchedule_STATUS to RelativeMonthlySchedule_STATUS via AssignProperties_To_RelativeMonthlySchedule_STATUS & AssignProperties_From_RelativeMonthlySchedule_STATUS returns original",
		prop.ForAll(RunPropertyAssignmentTestForRelativeMonthlySchedule_STATUS, RelativeMonthlySchedule_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForRelativeMonthlySchedule_STATUS tests if a specific instance of RelativeMonthlySchedule_STATUS can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForRelativeMonthlySchedule_STATUS(subject RelativeMonthlySchedule_STATUS) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.RelativeMonthlySchedule_STATUS
	err := copied.AssignProperties_To_RelativeMonthlySchedule_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual RelativeMonthlySchedule_STATUS
	err = actual.AssignProperties_From_RelativeMonthlySchedule_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_RelativeMonthlySchedule_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of RelativeMonthlySchedule_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForRelativeMonthlySchedule_STATUS, RelativeMonthlySchedule_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForRelativeMonthlySchedule_STATUS runs a test to see if a specific instance of RelativeMonthlySchedule_STATUS round trips to JSON and back losslessly
func RunJSONSerializationTestForRelativeMonthlySchedule_STATUS(subject RelativeMonthlySchedule_STATUS) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual RelativeMonthlySchedule_STATUS
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of RelativeMonthlySchedule_STATUS instances for property testing - lazily instantiated by
// RelativeMonthlySchedule_STATUSGenerator()
var relativeMonthlySchedule_STATUSGenerator gopter.Gen

// RelativeMonthlySchedule_STATUSGenerator returns a generator of RelativeMonthlySchedule_STATUS instances for property testing.
func RelativeMonthlySchedule_STATUSGenerator() gopter.Gen {
	if relativeMonthlySchedule_STATUSGenerator != nil {
		return relativeMonthlySchedule_STATUSGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForRelativeMonthlySchedule_STATUS(generators)
	relativeMonthlySchedule_STATUSGenerator = gen.Struct(reflect.TypeOf(RelativeMonthlySchedule_STATUS{}), generators)

	return relativeMonthlySchedule_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForRelativeMonthlySchedule_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForRelativeMonthlySchedule_STATUS(gens map[string]gopter.Gen) {
	gens["DayOfWeek"] = gen.PtrOf(gen.OneConstOf(
		WeekDay_STATUS_Friday,
		WeekDay_STATUS_Monday,
		WeekDay_STATUS_Saturday,
		WeekDay_STATUS_Sunday,
		WeekDay_STATUS_Thursday,
		WeekDay_STATUS_Tuesday,
		WeekDay_STATUS_Wednesday))
	gens["IntervalMonths"] = gen.PtrOf(gen.Int())
	gens["WeekIndex"] = gen.PtrOf(gen.OneConstOf(
		RelativeMonthlySchedule_WeekIndex_STATUS_First,
		RelativeMonthlySchedule_WeekIndex_STATUS_Fourth,
		RelativeMonthlySchedule_WeekIndex_STATUS_Last,
		RelativeMonthlySchedule_WeekIndex_STATUS_Second,
		RelativeMonthlySchedule_WeekIndex_STATUS_Third))
}

func Test_Schedule_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from Schedule to Schedule via AssignProperties_To_Schedule & AssignProperties_From_Schedule returns original",
		prop.ForAll(RunPropertyAssignmentTestForSchedule, ScheduleGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForSchedule tests if a specific instance of Schedule can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForSchedule(subject Schedule) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.Schedule
	err := copied.AssignProperties_To_Schedule(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual Schedule
	err = actual.AssignProperties_From_Schedule(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_Schedule_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 100
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of Schedule via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForSchedule, ScheduleGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForSchedule runs a test to see if a specific instance of Schedule round trips to JSON and back losslessly
func RunJSONSerializationTestForSchedule(subject Schedule) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual Schedule
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of Schedule instances for property testing - lazily instantiated by ScheduleGenerator()
var scheduleGenerator gopter.Gen

// ScheduleGenerator returns a generator of Schedule instances for property testing.
func ScheduleGenerator() gopter.Gen {
	if scheduleGenerator != nil {
		return scheduleGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddRelatedPropertyGeneratorsForSchedule(generators)
	scheduleGenerator = gen.Struct(reflect.TypeOf(Schedule{}), generators)

	return scheduleGenerator
}

// AddRelatedPropertyGeneratorsForSchedule is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForSchedule(gens map[string]gopter.Gen) {
	gens["AbsoluteMonthly"] = gen.PtrOf(AbsoluteMonthlyScheduleGenerator())
	gens["Daily"] = gen.PtrOf(DailyScheduleGenerator())
	gens["RelativeMonthly"] = gen.PtrOf(RelativeMonthlyScheduleGenerator())
	gens["Weekly"] = gen.PtrOf(WeeklyScheduleGenerator())
}

func Test_Schedule_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from Schedule_STATUS to Schedule_STATUS via AssignProperties_To_Schedule_STATUS & AssignProperties_From_Schedule_STATUS returns original",
		prop.ForAll(RunPropertyAssignmentTestForSchedule_STATUS, Schedule_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForSchedule_STATUS tests if a specific instance of Schedule_STATUS can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForSchedule_STATUS(subject Schedule_STATUS) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.Schedule_STATUS
	err := copied.AssignProperties_To_Schedule_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual Schedule_STATUS
	err = actual.AssignProperties_From_Schedule_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_Schedule_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of Schedule_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForSchedule_STATUS, Schedule_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForSchedule_STATUS runs a test to see if a specific instance of Schedule_STATUS round trips to JSON and back losslessly
func RunJSONSerializationTestForSchedule_STATUS(subject Schedule_STATUS) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual Schedule_STATUS
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of Schedule_STATUS instances for property testing - lazily instantiated by Schedule_STATUSGenerator()
var schedule_STATUSGenerator gopter.Gen

// Schedule_STATUSGenerator returns a generator of Schedule_STATUS instances for property testing.
func Schedule_STATUSGenerator() gopter.Gen {
	if schedule_STATUSGenerator != nil {
		return schedule_STATUSGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddRelatedPropertyGeneratorsForSchedule_STATUS(generators)
	schedule_STATUSGenerator = gen.Struct(reflect.TypeOf(Schedule_STATUS{}), generators)

	return schedule_STATUSGenerator
}

// AddRelatedPropertyGeneratorsForSchedule_STATUS is a factory method for creating gopter generators
func AddRelatedPropertyGeneratorsForSchedule_STATUS(gens map[string]gopter.Gen) {
	gens["AbsoluteMonthly"] = gen.PtrOf(AbsoluteMonthlySchedule_STATUSGenerator())
	gens["Daily"] = gen.PtrOf(DailySchedule_STATUSGenerator())
	gens["RelativeMonthly"] = gen.PtrOf(RelativeMonthlySchedule_STATUSGenerator())
	gens["Weekly"] = gen.PtrOf(WeeklySchedule_STATUSGenerator())
}

func Test_SystemData_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from SystemData_STATUS to SystemData_STATUS via AssignProperties_To_SystemData_STATUS & AssignProperties_From_SystemData_STATUS returns original",
		prop.ForAll(RunPropertyAssignmentTestForSystemData_STATUS, SystemData_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForSystemData_STATUS tests if a specific instance of SystemData_STATUS can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForSystemData_STATUS(subject SystemData_STATUS) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.SystemData_STATUS
	err := copied.AssignProperties_To_SystemData_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual SystemData_STATUS
	err = actual.AssignProperties_From_SystemData_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_SystemData_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of SystemData_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForSystemData_STATUS, SystemData_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForSystemData_STATUS runs a test to see if a specific instance of SystemData_STATUS round trips to JSON and back losslessly
func RunJSONSerializationTestForSystemData_STATUS(subject SystemData_STATUS) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual SystemData_STATUS
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of SystemData_STATUS instances for property testing - lazily instantiated by SystemData_STATUSGenerator()
var systemData_STATUSGenerator gopter.Gen

// SystemData_STATUSGenerator returns a generator of SystemData_STATUS instances for property testing.
func SystemData_STATUSGenerator() gopter.Gen {
	if systemData_STATUSGenerator != nil {
		return systemData_STATUSGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForSystemData_STATUS(generators)
	systemData_STATUSGenerator = gen.Struct(reflect.TypeOf(SystemData_STATUS{}), generators)

	return systemData_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForSystemData_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForSystemData_STATUS(gens map[string]gopter.Gen) {
	gens["CreatedAt"] = gen.PtrOf(gen.AlphaString())
	gens["CreatedBy"] = gen.PtrOf(gen.AlphaString())
	gens["CreatedByType"] = gen.PtrOf(gen.OneConstOf(
		SystemData_CreatedByType_STATUS_Application,
		SystemData_CreatedByType_STATUS_Key,
		SystemData_CreatedByType_STATUS_ManagedIdentity,
		SystemData_CreatedByType_STATUS_User))
	gens["LastModifiedAt"] = gen.PtrOf(gen.AlphaString())
	gens["LastModifiedBy"] = gen.PtrOf(gen.AlphaString())
	gens["LastModifiedByType"] = gen.PtrOf(gen.OneConstOf(
		SystemData_LastModifiedByType_STATUS_Application,
		SystemData_LastModifiedByType_STATUS_Key,
		SystemData_LastModifiedByType_STATUS_ManagedIdentity,
		SystemData_LastModifiedByType_STATUS_User))
}

func Test_TimeInWeek_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from TimeInWeek to TimeInWeek via AssignProperties_To_TimeInWeek & AssignProperties_From_TimeInWeek returns original",
		prop.ForAll(RunPropertyAssignmentTestForTimeInWeek, TimeInWeekGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForTimeInWeek tests if a specific instance of TimeInWeek can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForTimeInWeek(subject TimeInWeek) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.TimeInWeek
	err := copied.AssignProperties_To_TimeInWeek(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual TimeInWeek
	err = actual.AssignProperties_From_TimeInWeek(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_TimeInWeek_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 100
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of TimeInWeek via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForTimeInWeek, TimeInWeekGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForTimeInWeek runs a test to see if a specific instance of TimeInWeek round trips to JSON and back losslessly
func RunJSONSerializationTestForTimeInWeek(subject TimeInWeek) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual TimeInWeek
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of TimeInWeek instances for property testing - lazily instantiated by TimeInWeekGenerator()
var timeInWeekGenerator gopter.Gen

// TimeInWeekGenerator returns a generator of TimeInWeek instances for property testing.
func TimeInWeekGenerator() gopter.Gen {
	if timeInWeekGenerator != nil {
		return timeInWeekGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForTimeInWeek(generators)
	timeInWeekGenerator = gen.Struct(reflect.TypeOf(TimeInWeek{}), generators)

	return timeInWeekGenerator
}

// AddIndependentPropertyGeneratorsForTimeInWeek is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForTimeInWeek(gens map[string]gopter.Gen) {
	gens["Day"] = gen.PtrOf(gen.OneConstOf(
		WeekDay_Friday,
		WeekDay_Monday,
		WeekDay_Saturday,
		WeekDay_Sunday,
		WeekDay_Thursday,
		WeekDay_Tuesday,
		WeekDay_Wednesday))
	gens["HourSlots"] = gen.SliceOf(gen.Int().Map(func(it int) HourInDay {
		return HourInDay(it)
	}))
}

func Test_TimeInWeek_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from TimeInWeek_STATUS to TimeInWeek_STATUS via AssignProperties_To_TimeInWeek_STATUS & AssignProperties_From_TimeInWeek_STATUS returns original",
		prop.ForAll(RunPropertyAssignmentTestForTimeInWeek_STATUS, TimeInWeek_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForTimeInWeek_STATUS tests if a specific instance of TimeInWeek_STATUS can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForTimeInWeek_STATUS(subject TimeInWeek_STATUS) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.TimeInWeek_STATUS
	err := copied.AssignProperties_To_TimeInWeek_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual TimeInWeek_STATUS
	err = actual.AssignProperties_From_TimeInWeek_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_TimeInWeek_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of TimeInWeek_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForTimeInWeek_STATUS, TimeInWeek_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForTimeInWeek_STATUS runs a test to see if a specific instance of TimeInWeek_STATUS round trips to JSON and back losslessly
func RunJSONSerializationTestForTimeInWeek_STATUS(subject TimeInWeek_STATUS) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual TimeInWeek_STATUS
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of TimeInWeek_STATUS instances for property testing - lazily instantiated by TimeInWeek_STATUSGenerator()
var timeInWeek_STATUSGenerator gopter.Gen

// TimeInWeek_STATUSGenerator returns a generator of TimeInWeek_STATUS instances for property testing.
func TimeInWeek_STATUSGenerator() gopter.Gen {
	if timeInWeek_STATUSGenerator != nil {
		return timeInWeek_STATUSGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForTimeInWeek_STATUS(generators)
	timeInWeek_STATUSGenerator = gen.Struct(reflect.TypeOf(TimeInWeek_STATUS{}), generators)

	return timeInWeek_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForTimeInWeek_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForTimeInWeek_STATUS(gens map[string]gopter.Gen) {
	gens["Day"] = gen.PtrOf(gen.OneConstOf(
		WeekDay_STATUS_Friday,
		WeekDay_STATUS_Monday,
		WeekDay_STATUS_Saturday,
		WeekDay_STATUS_Sunday,
		WeekDay_STATUS_Thursday,
		WeekDay_STATUS_Tuesday,
		WeekDay_STATUS_Wednesday))
	gens["HourSlots"] = gen.SliceOf(gen.Int())
}

func Test_TimeSpan_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from TimeSpan to TimeSpan via AssignProperties_To_TimeSpan & AssignProperties_From_TimeSpan returns original",
		prop.ForAll(RunPropertyAssignmentTestForTimeSpan, TimeSpanGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForTimeSpan tests if a specific instance of TimeSpan can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForTimeSpan(subject TimeSpan) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.TimeSpan
	err := copied.AssignProperties_To_TimeSpan(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual TimeSpan
	err = actual.AssignProperties_From_TimeSpan(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_TimeSpan_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 100
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of TimeSpan via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForTimeSpan, TimeSpanGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForTimeSpan runs a test to see if a specific instance of TimeSpan round trips to JSON and back losslessly
func RunJSONSerializationTestForTimeSpan(subject TimeSpan) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual TimeSpan
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of TimeSpan instances for property testing - lazily instantiated by TimeSpanGenerator()
var timeSpanGenerator gopter.Gen

// TimeSpanGenerator returns a generator of TimeSpan instances for property testing.
func TimeSpanGenerator() gopter.Gen {
	if timeSpanGenerator != nil {
		return timeSpanGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForTimeSpan(generators)
	timeSpanGenerator = gen.Struct(reflect.TypeOf(TimeSpan{}), generators)

	return timeSpanGenerator
}

// AddIndependentPropertyGeneratorsForTimeSpan is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForTimeSpan(gens map[string]gopter.Gen) {
	gens["End"] = gen.PtrOf(gen.AlphaString())
	gens["Start"] = gen.PtrOf(gen.AlphaString())
}

func Test_TimeSpan_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from TimeSpan_STATUS to TimeSpan_STATUS via AssignProperties_To_TimeSpan_STATUS & AssignProperties_From_TimeSpan_STATUS returns original",
		prop.ForAll(RunPropertyAssignmentTestForTimeSpan_STATUS, TimeSpan_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForTimeSpan_STATUS tests if a specific instance of TimeSpan_STATUS can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForTimeSpan_STATUS(subject TimeSpan_STATUS) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.TimeSpan_STATUS
	err := copied.AssignProperties_To_TimeSpan_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual TimeSpan_STATUS
	err = actual.AssignProperties_From_TimeSpan_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_TimeSpan_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of TimeSpan_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForTimeSpan_STATUS, TimeSpan_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForTimeSpan_STATUS runs a test to see if a specific instance of TimeSpan_STATUS round trips to JSON and back losslessly
func RunJSONSerializationTestForTimeSpan_STATUS(subject TimeSpan_STATUS) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual TimeSpan_STATUS
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of TimeSpan_STATUS instances for property testing - lazily instantiated by TimeSpan_STATUSGenerator()
var timeSpan_STATUSGenerator gopter.Gen

// TimeSpan_STATUSGenerator returns a generator of TimeSpan_STATUS instances for property testing.
func TimeSpan_STATUSGenerator() gopter.Gen {
	if timeSpan_STATUSGenerator != nil {
		return timeSpan_STATUSGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForTimeSpan_STATUS(generators)
	timeSpan_STATUSGenerator = gen.Struct(reflect.TypeOf(TimeSpan_STATUS{}), generators)

	return timeSpan_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForTimeSpan_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForTimeSpan_STATUS(gens map[string]gopter.Gen) {
	gens["End"] = gen.PtrOf(gen.AlphaString())
	gens["Start"] = gen.PtrOf(gen.AlphaString())
}

func Test_WeeklySchedule_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from WeeklySchedule to WeeklySchedule via AssignProperties_To_WeeklySchedule & AssignProperties_From_WeeklySchedule returns original",
		prop.ForAll(RunPropertyAssignmentTestForWeeklySchedule, WeeklyScheduleGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForWeeklySchedule tests if a specific instance of WeeklySchedule can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForWeeklySchedule(subject WeeklySchedule) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.WeeklySchedule
	err := copied.AssignProperties_To_WeeklySchedule(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual WeeklySchedule
	err = actual.AssignProperties_From_WeeklySchedule(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_WeeklySchedule_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 100
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of WeeklySchedule via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForWeeklySchedule, WeeklyScheduleGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForWeeklySchedule runs a test to see if a specific instance of WeeklySchedule round trips to JSON and back losslessly
func RunJSONSerializationTestForWeeklySchedule(subject WeeklySchedule) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual WeeklySchedule
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of WeeklySchedule instances for property testing - lazily instantiated by WeeklyScheduleGenerator()
var weeklyScheduleGenerator gopter.Gen

// WeeklyScheduleGenerator returns a generator of WeeklySchedule instances for property testing.
func WeeklyScheduleGenerator() gopter.Gen {
	if weeklyScheduleGenerator != nil {
		return weeklyScheduleGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForWeeklySchedule(generators)
	weeklyScheduleGenerator = gen.Struct(reflect.TypeOf(WeeklySchedule{}), generators)

	return weeklyScheduleGenerator
}

// AddIndependentPropertyGeneratorsForWeeklySchedule is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForWeeklySchedule(gens map[string]gopter.Gen) {
	gens["DayOfWeek"] = gen.PtrOf(gen.OneConstOf(
		WeekDay_Friday,
		WeekDay_Monday,
		WeekDay_Saturday,
		WeekDay_Sunday,
		WeekDay_Thursday,
		WeekDay_Tuesday,
		WeekDay_Wednesday))
	gens["IntervalWeeks"] = gen.PtrOf(gen.Int())
}

func Test_WeeklySchedule_STATUS_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MaxSize = 10
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip from WeeklySchedule_STATUS to WeeklySchedule_STATUS via AssignProperties_To_WeeklySchedule_STATUS & AssignProperties_From_WeeklySchedule_STATUS returns original",
		prop.ForAll(RunPropertyAssignmentTestForWeeklySchedule_STATUS, WeeklySchedule_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(false, 240, os.Stdout))
}

// RunPropertyAssignmentTestForWeeklySchedule_STATUS tests if a specific instance of WeeklySchedule_STATUS can be assigned to storage and back losslessly
func RunPropertyAssignmentTestForWeeklySchedule_STATUS(subject WeeklySchedule_STATUS) string {
	// Copy subject to make sure assignment doesn't modify it
	copied := subject.DeepCopy()

	// Use AssignPropertiesTo() for the first stage of conversion
	var other storage.WeeklySchedule_STATUS
	err := copied.AssignProperties_To_WeeklySchedule_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Use AssignPropertiesFrom() to convert back to our original type
	var actual WeeklySchedule_STATUS
	err = actual.AssignProperties_From_WeeklySchedule_STATUS(&other)
	if err != nil {
		return err.Error()
	}

	// Check for a match
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

func Test_WeeklySchedule_STATUS_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) {
	t.Parallel()
	parameters := gopter.DefaultTestParameters()
	parameters.MinSuccessfulTests = 80
	parameters.MaxSize = 3
	properties := gopter.NewProperties(parameters)
	properties.Property(
		"Round trip of WeeklySchedule_STATUS via JSON returns original",
		prop.ForAll(RunJSONSerializationTestForWeeklySchedule_STATUS, WeeklySchedule_STATUSGenerator()))
	properties.TestingRun(t, gopter.NewFormatedReporter(true, 240, os.Stdout))
}

// RunJSONSerializationTestForWeeklySchedule_STATUS runs a test to see if a specific instance of WeeklySchedule_STATUS round trips to JSON and back losslessly
func RunJSONSerializationTestForWeeklySchedule_STATUS(subject WeeklySchedule_STATUS) string {
	// Serialize to JSON
	bin, err := json.Marshal(subject)
	if err != nil {
		return err.Error()
	}

	// Deserialize back into memory
	var actual WeeklySchedule_STATUS
	err = json.Unmarshal(bin, &actual)
	if err != nil {
		return err.Error()
	}

	// Check for outcome
	match := cmp.Equal(subject, actual, cmpopts.EquateEmpty())
	if !match {
		actualFmt := pretty.Sprint(actual)
		subjectFmt := pretty.Sprint(subject)
		result := diff.Diff(subjectFmt, actualFmt)
		return result
	}

	return ""
}

// Generator of WeeklySchedule_STATUS instances for property testing - lazily instantiated by
// WeeklySchedule_STATUSGenerator()
var weeklySchedule_STATUSGenerator gopter.Gen

// WeeklySchedule_STATUSGenerator returns a generator of WeeklySchedule_STATUS instances for property testing.
func WeeklySchedule_STATUSGenerator() gopter.Gen {
	if weeklySchedule_STATUSGenerator != nil {
		return weeklySchedule_STATUSGenerator
	}

	generators := make(map[string]gopter.Gen)
	AddIndependentPropertyGeneratorsForWeeklySchedule_STATUS(generators)
	weeklySchedule_STATUSGenerator = gen.Struct(reflect.TypeOf(WeeklySchedule_STATUS{}), generators)

	return weeklySchedule_STATUSGenerator
}

// AddIndependentPropertyGeneratorsForWeeklySchedule_STATUS is a factory method for creating gopter generators
func AddIndependentPropertyGeneratorsForWeeklySchedule_STATUS(gens map[string]gopter.Gen) {
	gens["DayOfWeek"] = gen.PtrOf(gen.OneConstOf(
		WeekDay_STATUS_Friday,
		WeekDay_STATUS_Monday,
		WeekDay_STATUS_Saturday,
		WeekDay_STATUS_Sunday,
		WeekDay_STATUS_Thursday,
		WeekDay_STATUS_Tuesday,
		WeekDay_STATUS_Wednesday))
	gens["IntervalWeeks"] = gen.PtrOf(gen.Int())
}
