public async Task CreateApps() { // Arrange // Act var result = await sut.Add(newApp); // Assert Assert.That(result.Success, Is.True); Assert.That((App)result.Object, Is.InstanceOf <App>()); }
private void SaveAppsToLocalStorage(AppsResponse apps) { foreach (var app in apps.Results) { if (_repository.GetAllWhere(x => x.PackageName == app.PackageName).Any()) { continue; } _repository.Add(app); } }