public async Task GetByIdAsync() { // Arrange FavouriteRepositoryAsync repository = new FavouriteRepositoryAsync(); // Act Favourite results = await repository.GetByIdAsync("*****@*****.**", "PRIMAVERA"); // Assert Assert.IsNotNull(results); }
public async Task ListAsync() { // Arrange FavouriteRepositoryAsync repository = new FavouriteRepositoryAsync(); // Act IEnumerable <Favourite> results = await repository.ListAsync(new { UserName = "******" }); // Assert Assert.IsNotNull(results); Assert.IsTrue(results.Any()); }