Exemplo n.º 1
0
        public async void AddAsyncShouldAddWidget()
        {
            var options = OverwatchOptionBuilder.CreateBuilderWithName("OverwatchDbAddWidgetsAsync");

            using (var overwatchContext = new OverwatchContext(options))
            {
                var widgetRepository = new WidgetRepository(overwatchContext);
                await WidgetRepositoryFillerAsync(widgetRepository, _widgets);

                var result = await widgetRepository.GetAllAsync();

                Assert.Equal(result.Count(), _widgets.Count());
            }
        }