Esempio n. 1
0
        public void Test_Modules_With_The_Same_Name_Are_Put_In_Same_Module()
        {
            // Setup
            var mockUnitOfWork = new MockUnitOfWork();

            mockUnitOfWork.AddResult(_files);

            var counselorFacade = new CounselorFacade(mockUnitOfWork);

            // Act
            var result = counselorFacade.GetFileByFileId(1);

            var amountOfModulesExpected = 2;
            var amountOfModulesActual   = result.Modules.Count();

            // Assert
            Assert.AreEqual(amountOfModulesExpected, amountOfModulesActual);
        }