コード例 #1
0
        public void OneTimeSetUp()
        {
            _fakeSlugStore     = A.Fake <ISlugStore>();
            _fakeSlugAlgorithm = A.Fake <ISlugAlgorithm>();

            _slugGenerator = new SlugGenerator(_fakeSlugStore, _fakeSlugAlgorithm);
        }
コード例 #2
0
 public void OneTimeSetUp()
 {
     _fakeSlugStore     = A.Fake <ISlugStore>();
     _fakeSlugAlgorithm = A.Fake <ISlugAlgorithm>();
 }
コード例 #3
0
 public SlugGenerator(ISlugStore slugStore, ISlugAlgorithm slugAlgorithm)
     : this(new SlugGeneratorOptions(), slugStore, slugAlgorithm)
 {
 }
コード例 #4
0
 public SlugGenerator(SlugGeneratorOptions slugGeneratorOptions, ISlugStore slugStore, ISlugAlgorithm slugAlgorithm)
 {
     _slugStore            = slugStore;
     _slugAlgorithm        = slugAlgorithm;
     _slugGeneratorOptions = slugGeneratorOptions;
 }
コード例 #5
0
 public SlugGenerator(SlugGeneratorOptions slugGeneratorOptions, ISlugAlgorithm slugAlgorithm)
     : this(slugGeneratorOptions, new InMemorySlugStore(), slugAlgorithm)
 {
 }