コード例 #1
0
        public void ReturnsFalse_StoreByIdSearchByNameOrCitySpecSpec_WithInvalidCityAndNameSearchString()
        {
            var spec = new StoreByIdSearchByNameOrCitySpec(StoreSeed.VALID_Search_ID, "random");

            var result = spec.IsSatisfiedBy(store);

            result.Should().BeFalse();
        }
コード例 #2
0
        public void ReturnsTrue_StoreByIdSearchByNameOrCitySpecSpec_WithInvalidCitySearchString()
        {
            var spec = new StoreByIdSearchByNameOrCitySpec(StoreSeed.VALID_Search_ID, StoreSeed.VALID_Search_Name_Key);

            var result = spec.IsSatisfiedBy(store);

            result.Should().BeTrue();
        }