public async Task SynchronizeForThemeAndSubtheme_BricksetApiServiceReturnsEmptyList_NothingIsSaved() { var bricksetApiService = Substitute.For <IBricksetApiService>(); bricksetApiService .GetSets(Arg.Any <GetSetsParameters>()) .Returns(Enumerable.Empty <Sets>()); var setSynchronizer = CreateTarget(bricksetApiService); await setSynchronizer.Synchronize(string.Empty, new Theme { Name = string.Empty, YearFrom = 0, YearTo = 1 }, new Subtheme { Name = string.Empty }).ConfigureAwait(false); Check.That(_setRepository.All()).IsEmpty(); }
public void All_NoSets_ReturnsEmpty() { var allSets = _setRepository.All(); Check.That(allSets).IsEmpty(); }