public async Task GetUsersPresentsTest() { var users = fixture.Create <List <User> >(); db.User.AddRange(users); await db.SaveChangesAsync(); var dtNotPresents = new DateTime(DateTime.Now.Year, 12, 23); var presentsEmployee = new PresentsEmployee(db, dtNotPresents); presentsEmployee.GetUsersPresents(); }
public async Task GetUsersPresents_8mart_found() { var users = fixture.Create <List <User> >(); db.User.AddRange(users); await db.SaveChangesAsync(); var dt8 = new DateTime(DateTime.Now.Year, 3, 8); var presentsEmployee = new PresentsEmployee(db, dt8); var userPresents = presentsEmployee.GetUsersPresents(); dt8.Should().Equals(userPresents); }