public void Setup() { _mongoCollectionClient = Substitute.For <IMongoCollectionClient <DbJson> >(); _mapper = Substitute.For <IMapper>(); _jsonRepositoryInstance = new JsonRepository(_mongoCollectionClient, _mapper); }
public UserRepository(IMongoCollectionClient <DbUser> mongoCollectionClient, IMapper mapper) { _mongoCollectionClient = mongoCollectionClient; _mapper = mapper; }
public JsonRepository(IMongoCollectionClient <DbJson> mongoCollectionClient, IMapper mapper) { _mongoCollectionClient = mongoCollectionClient; _mapper = mapper; }