コード例 #1
0
        public async Task ReturnNullIfNotExists()
        {
            var widget = await WidgetFactory.GetExisting();

            var responseWidget = await WidgetRepository.Get(Guid.NewGuid());

            Assert.Null(responseWidget);
        }
コード例 #2
0
        public async Task ReturnEntityIfExists()
        {
            var widget = await WidgetFactory.GetExisting();

            var responseWidget = await WidgetRepository.Get(widget.Id);

            Assert.Equal(widget, responseWidget);
        }