Beispiel #1
0
        public async Task TestGetAttendanceByScheduleUserIdSuccessfully()
        {
            //Arrange
            AttendanceReports attendance = new AttendanceReports()
            {
                AttendanceId = 1, Status = "future", TimeTableId = 1, UserId = "1"
            };
            await context.AttendanceReports.AddAsync(attendance);

            await context.SaveChangesAsync();

            //Act
            var result = attendanceDAO.GetAttendanceByScheduleUserId(1, "1");

            //Assert
            Assert.Equal(attendance, result);
        }