public void SetUp()
 {
     Clear();
     Use <Mock <IQueryProcessor> >();
     Logger    = new FakeTraceWriter();
     QueryName = "FakeQuery";
 }
 public void SetUp()
 {
     Clear();
     Use <Mock <IQueryProcessor> >();
     Logger    = new FakeTraceWriter();
     QueryName = "FakeQuery";
     The <Mock <IQueryProcessor> >().Setup(x => x.GetQueryType(QueryName)).Returns(typeof(FakeQuery));
 }
Пример #3
0
 public void SetUp()
 {
     Clear();
     Use <Mock <ICommandProcessor> >();
     Req = new HttpRequestMessage {
         Method = HttpMethod.Post, Content = new StringContent("{}")
     };
     Req.SetConfiguration(new HttpConfiguration());
     Logger = new FakeTraceWriter();
 }