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