public async Task GetShouldReturnNullIfNoFeatureFound() { // Arrange InitializeFeaturesData(); var featuresService = new FeaturesService(_db, new Settings()); // Act var feature = await featuresService.Get("X"); // Assert feature.ShouldBeNull(); }
public async Task GetShouldReturnAnExistingFeature() { // Arrange InitializeFeaturesData(); var featuresService = new FeaturesService(_db, new Settings()); // Act var feature = await featuresService.Get("Beta"); // Assert feature.ShouldNotBeNull(); }