Ejemplo n.º 1
0
 public void Setup()
 {
     _mongoCollectionClient = Substitute.For <IMongoCollectionClient <DbJson> >();
     _mapper = Substitute.For <IMapper>();
     _jsonRepositoryInstance = new JsonRepository(_mongoCollectionClient, _mapper);
 }
Ejemplo n.º 2
0
 public UserRepository(IMongoCollectionClient <DbUser> mongoCollectionClient, IMapper mapper)
 {
     _mongoCollectionClient = mongoCollectionClient;
     _mapper = mapper;
 }
Ejemplo n.º 3
0
 public JsonRepository(IMongoCollectionClient <DbJson> mongoCollectionClient, IMapper mapper)
 {
     _mongoCollectionClient = mongoCollectionClient;
     _mapper = mapper;
 }