public async Task ReturnNullIfNotExists() { var widget = await WidgetFactory.GetExisting(); var responseWidget = await WidgetRepository.Get(Guid.NewGuid()); Assert.Null(responseWidget); }
public async Task ReturnEntityIfExists() { var widget = await WidgetFactory.GetExisting(); var responseWidget = await WidgetRepository.Get(widget.Id); Assert.Equal(widget, responseWidget); }