Beispiel #1
0
        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>());
        }
Beispiel #2
0
        private void SaveAppsToLocalStorage(AppsResponse apps)
        {
            foreach (var app in apps.Results)
            {
                if (_repository.GetAllWhere(x => x.PackageName == app.PackageName).Any())
                {
                    continue;
                }

                _repository.Add(app);
            }
        }