Ejemplo n.º 1
0
        public void Setup()
        {
            _artifactDao = Substitute.For <IArtifactDao>();
            Func <HttpRequestMessage> fakeFunc = () => FakeHttpMessageBuilder.CreateFakeHttpMessage();

            _modelFactory = new ModelFactory(new ObjectDifferenceManager(), fakeFunc);
            _artifactRepo = new ArtifactRepository(_artifactDao, _modelFactory);
            _fixture      = new Fixture();
        }
Ejemplo n.º 2
0
 public ArtifactRepository(IArtifactDao artifactDao, IModelFactory modelFactory)
 {
     _artifactDao  = artifactDao;
     _modelFactory = modelFactory;
 }