public async Task AddRange_RowsAreAdded_DbContainsEntries() { var users = new List <User>() { new User { Address = "address0", FullName = "name0", PhoneNumber = 47 }, new User { Address = "address1", FullName = "name1", PhoneNumber = 48 }, new User { Address = "address2", FullName = "name2", PhoneNumber = 49 }, new User { Address = "address3", FullName = "name3", PhoneNumber = 50 }, }; bool success = await repo.AddRange(users); Assert.True(success); for (var i = 0; i < users.Count; i++) { var user = users[i]; Assert.NotNull(user.Id); Assert.Equal(user.PhoneNumber, 47 + i); Assert.EndsWith(i.ToString(), user.Address); Assert.EndsWith(i.ToString(), user.FullName); } await repo.RemoveRange(users); }