Ejemplo n.º 1
0
        public void GetApplicationsByBrandId_returns_expected_values()
        {
            // Given
            const int brandId = 1;

            var expectedFirstApplication = new ApplicationDetails()
            {
                ApplicationId   = 1,
                ApplicationName = "Entry Level - Win XP, Office 2003/07 OLD",
                PLAssess        = false,
                DiagAssess      = false,
                CourseTopicId   = 3,
                CategoryName    = "Office 2007",
                CourseTopic     = "Microsoft Office",
                CreatedDate     = new DateTime(2015, 9, 7, 12, 18, 11, 810),
            };

            // When
            var result = courseDataService.GetApplicationsByBrandId(brandId).ToList();

            // Then
            using (new AssertionScope())
            {
                result.Should().HaveCount(50);
                result.First().Should().BeEquivalentTo(expectedFirstApplication);
            }
        }