public void Add_Ok_Test() { var city = _context.Cities.First(); var picture = _context.Pictures.First(); var randomString = Guid.NewGuid().ToString(); var user = new User { Name = randomString, Phone = randomString, Email = randomString + "@mhbb.ru", AuthToken = randomString, CityId = city.Id, PictureId = picture.Id, Role = Role.RegisteredUser, DateRegistered = DateTime.Now }; var result = _userOperations.AddAsync(user).Result; Assert.AreEqual(randomString, result.Name); Assert.AreEqual(randomString, result.Phone); }