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(); }
public ArtifactRepository(IArtifactDao artifactDao, IModelFactory modelFactory) { _artifactDao = artifactDao; _modelFactory = modelFactory; }