public async void LunchRepository_GetUserAsync_ReturnsSpecifiedUser() { // arrange LunchContext context = GetContext(); LunchRepository target = new LunchRepository(context); UserEntity user = context.Users.Add(new UserEntity() { Name = "Tahra Dactyl", Nopes = "[]", }).Entity; await context.SaveChangesAsync(); // act UserDto result = await target.GetUserAsync(user.Id); // assert Assert.Equal(user.Name, result.Name); Assert.Equal(user.Nopes, JsonConvert.SerializeObject(result.Nopes)); }