Ejemplo n.º 1
0
        public void Map_WhenMappingSchoolClass_SetsVersion()
        {
            //Given
            MappingProvider provider    = GetProvider();
            SchoolClass     schoolClass = new SchoolClass();

            //When
            SchoolClassDto dto = GetMapped <SchoolClassDto, SchoolClass>(schoolClass);

            //Then
            Assert.Equal(DataAccessConstants.noSqlSchoolClassVersion, dto.Version);
        }
Ejemplo n.º 2
0
        public void Map_WhenMappingSchoolClass_SetsSameValues()
        {
            //Given
            MappingProvider provider    = GetProvider();
            SchoolClass     schoolClass = new SchoolClass()
            {
                // Name = "className",
                // Section = 1,
                // Grade = "grade1",
                // Year = "2000",
                // Department = "department1"
            };

            //When
            SchoolClassDto dto = GetMapped <SchoolClassDto, SchoolClass>(schoolClass);

            //Then
            // Assert.Equal(schoolClass.Name, dto.Name);
            // Assert.Equal(schoolClass.Section, dto.Section);
            // Assert.Equal(schoolClass.Grade, dto.Grade);
            // Assert.Equal(schoolClass.Year, dto.Year);
            // Assert.Equal(schoolClass.Department, dto.Department);
        }