Ejemplo n.º 1
0
        public CemeteryTests()
        {
            _corpseGetter = Substitute.For <ICorpseGetter>();
            _factory      = Substitute.For <ICemeteryAbstractFactory>();

            _factory.BuildCorpseGetter().Returns(_corpseGetter);

            _cemetery = new Core.Cemetery(_factory);
        }
Ejemplo n.º 2
0
 public Cemetery(ICemeteryAbstractFactory factory)
 {
     _corpseGetter = factory.BuildCorpseGetter();
 }
 public DefaultCorpseGetterTests()
 {
     _repository = Substitute.For <ICorpseRepository>();
     _getter     = new DefaultCorpseGetter(_repository);
 }