Exemplo n.º 1
0
        public void Then_If_No_Options_Exists_Then_Empty_List_is_Mapped_To_Options(StandardImport standardImport)
        {
            standardImport.Options = new List <string>();
            standardImport.OptionsUnstructuredTemplate = new List <string>();

            var actual = (Standard)standardImport;

            actual.Options.Should().BeEquivalentTo(new List <string>());
        }
        public void Then_Maps_The_Fields(StandardImport standardImport)
        {
            var actual = (Standard)standardImport;

            actual.Should().BeEquivalentTo(standardImport, options => options
                                           .Excluding(c => c.OptionsUnstructuredTemplate)
                                           .Excluding(c => c.ApprenticeshipFunding)
                                           .Excluding(c => c.LarsStandard)
                                           .Excluding(c => c.Route)
                                           );
        }
Exemplo n.º 3
0
        public void Then_If_Options_Do_Not_Exists_Then_OptionsUnstructuredTemplate_Are_Mapped_To_Options(StandardImport standardImport)
        {
            standardImport.Options = new List <string>();

            var actual = (Standard)standardImport;

            actual.Options.Should().BeEquivalentTo(standardImport.OptionsUnstructuredTemplate);
        }
Exemplo n.º 4
0
        public void Then_If_Options_And_OptionsUnstructuredTemplate_Exists_Then_Options_Are_Mapped_To_Options(StandardImport standardImport)
        {
            var actual = (Standard)standardImport;

            actual.Options.Should().BeEquivalentTo(standardImport.Options);
        }