Beispiel #1
0
 public override void SetUp()
 {
     base.SetUp();
     cluster = RiakCluster.FromConfig("riakConfig");
     client = cluster.CreateClient();
     fixture.Inject(client);
     userDocumentMapper = fixture.Freeze<IMapper<User, UserDocument>>();
     userMapper = fixture.Freeze<IMapper<UserDocument, User>>();
     sut = fixture.Create<UserRepository>();
 }
Beispiel #2
0
 public override void SetUp()
 {
     base.SetUp();
     var redisConnectionString = ConfigurationManager.ConnectionStrings["Redis"].ConnectionString;
     client = new RedisClient(new Uri(redisConnectionString));
     fixture.Inject(client);
     userDocumentMapper = fixture.Freeze<IMapper<User, UserDocument>>();
     userMapper = fixture.Freeze<IMapper<UserDocument, User>>();
     sut = fixture.Create<UserRepository>();
 }