gpt-3.5-turbo-0301· OpenAI
WildChat-4.8M (AI2)
как лучше назвать этот тест? [TestMethod] public async System.Threading.Tasks.Task…
- User
как лучше назвать этот тест? [TestMethod] public async System.Threading.Tasks.Task TestGetAl() { // Arrange var expectedCount = GetTestUsers().Count(); await _context.AddRangeAsync(new List { new Employee {Id = new Guid(), FirstName = "Jack", LastName = "Ugne"}, new Employee {Id = new Guid(), FirstName = "Rak", LastName = "Tenn"}, new Employee {Id = new Guid(), FirstName = "Tou", LastName = "Ihp"}, }); await _context.SaveChangesAsync();
// Act var result = await _service.GetAll(); // Assert Assert.AreEqual(expectedCount, 2, "The number of employees in the database and the actual number is different."); } - Assistant
Тест получения всех сотрудников.
- User
на английском
- Assistant
TestGetAllEmployees.