예제 #1
0
 /// <summary>Sets the stub of IStreamManager.OpenStreamAsync(String boardName, AccessMode accessMode)</summary>
 global::System.Threading.Tasks.Task <global::System.IO.Stream> ss::Samples.Sudoku.IStreamManager.OpenStreamAsync(string boardName, ss::Samples.Sudoku.AccessMode accessMode)
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes
         .FakesDelegates.Func <string, ss::Samples.Sudoku.AccessMode, global::System.Threading.Tasks.Task <global::System.IO.Stream> >
         ___currentMethod = ((ss::Samples.Sudoku.IStreamManager) this).OpenStreamAsync;
         ___observer.Enter
             (typeof(ss::Samples.Sudoku.IStreamManager), (global::System.Delegate)___currentMethod, (object)boardName, (object)accessMode);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes
     .FakesDelegates.Func <string, ss::Samples.Sudoku.AccessMode, global::System.Threading.Tasks.Task <global::System.IO.Stream> > ___sh
         = this.OpenStreamAsyncStringAccessMode;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke(boardName, accessMode));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::Samples.Sudoku.Fakes.StubIStreamManager, global::System.Threading.Tasks.Task <global::System.IO.Stream> >
                    (this, "Samples.Sudoku.IStreamManager.OpenStreamAsync"));
     }
 }
예제 #2
0
 public static void QueryDetailOf1String <T>(mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <ppocdal::PostPOC.DAL.PostDAL, string, T> shim)
 {
     global::System.Type[] gma = new global::System.Type[1];
     gma[0] = typeof(T);
     mqttf::Microsoft.QualityTools.Testing.Fakes.Shims.ShimRuntime.SetGenericShimPublicInstance
         ((global::System.Delegate)shim, typeof(ppocdal::PostPOC.DAL.PostDAL), (object)null,
         "QueryDetail", gma, typeof(T), new global::System.Type[] { typeof(string) });
 }
예제 #3
0
 public void QueryDetailOf1String <T>(mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, T> shim)
 {
     global::System.Type[] gma = new global::System.Type[1];
     gma[0] = typeof(T);
     mqttf::Microsoft.QualityTools.Testing.Fakes.Shims.ShimRuntime.SetGenericShimPublicInstance((global::System.Delegate)
                                                                                                    (mqttf::Microsoft.QualityTools.Testing.Fakes.FakesExtensions.Uncurrify <ppocdal::PostPOC.DAL.PostDAL, string, T>(shim)),
                                                                                                typeof(ppocdal::PostPOC.DAL.PostDAL), base.Instance, "QueryDetail", gma, typeof(T), new global::System.Type[] { typeof(string) });
 }
예제 #4
0
 /// <summary>Sets the stub of IWeather.GetTemperature()</summary>
 double fsw::WeatherAnalysis.IWeather.GetTemperature()
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <double> ___currentMethod
             = ((fsw::WeatherAnalysis.IWeather) this).GetTemperature;
         ___observer.Enter(typeof(fsw::WeatherAnalysis.IWeather), (global::System.Delegate)___currentMethod);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <double> ___sh = this.GetTemperature;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke());
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::WeatherAnalysis.Fakes.StubIWeather, double>(this, "WeatherAnalysis.IWeather.GetTemperature"));
     }
 }
예제 #5
0
 /// <summary>Sets the stub of INegativeWords.GetNegativeWords()</summary>
 global::System.Collections.Generic.List <da::DataAccess.Words> da::DataAccess.INegativeWords.GetNegativeWords()
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <global::System.Collections.Generic.List <da::DataAccess.Words> >
         ___currentMethod = ((da::DataAccess.INegativeWords) this).GetNegativeWords;
         ___observer.Enter(typeof(da::DataAccess.INegativeWords), (global::System.Delegate)___currentMethod);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <global::System.Collections.Generic.List <da::DataAccess.Words> > ___sh
         = this.GetNegativeWords;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke());
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::DataAccess.Fakes.StubINegativeWords, global::System.Collections.Generic.List <da::DataAccess.Words> >
                    (this, "DataAccess.INegativeWords.GetNegativeWords"));
     }
 }
예제 #6
0
 /// <summary>Ustawia element klasa zastępcza dla: IFibModule.get_values_from_range(UInt64 a, UInt64 b)</summary>
 global::System.Collections.Generic.List <string> anet::AlgoNET.IFibModule.get_values_from_range(ulong a, ulong b)
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <ulong, ulong, global::System.Collections.Generic.List <string> >
         ___currentMethod = ((anet::AlgoNET.IFibModule) this).get_values_from_range;
         ___observer.Enter(typeof(anet::AlgoNET.IFibModule), (global::System.Delegate)___currentMethod, (object)a, (object)b);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <ulong, ulong, global::System.Collections.Generic.List <string> > ___sh
         = this.Values_from_rangeGetUInt64UInt64;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke(a, b));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::AlgoNET.Fakes.StubIFibModule, global::System.Collections.Generic.List <string> >
                    (this, "AlgoNET.IFibModule.get_values_from_range"));
     }
 }
예제 #7
0
 /// <summary>Sets the stub of ISeoSubmitLogic.countOfString(String searchText, List`1&lt;String&gt; textList)</summary>
 int seoal::SEOAnalyzerLogic.ISeoSubmitLogic.countOfString(string searchText, global::System.Collections.Generic.List <string> textList)
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, global::System.Collections.Generic.List <string>, int>
         ___currentMethod = ((seoal::SEOAnalyzerLogic.ISeoSubmitLogic) this).countOfString;
         ___observer.Enter
             (typeof(seoal::SEOAnalyzerLogic.ISeoSubmitLogic), (global::System.Delegate)___currentMethod, (object)searchText, (object)textList);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, global::System.Collections.Generic.List <string>, int> ___sh
         = this.CountOfStringStringListOfString;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke(searchText, textList));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::SEOAnalyzerLogic.Fakes.StubISeoSubmitLogic, int>(this, "SEOAnalyzerLogic.ISeoSubmitLogic.countOfString"));
     }
 }
예제 #8
0
 /// <summary>Sets the stub of IFoodLogEntryRepository.GetAll()</summary>
 global::System.Linq.IQueryable <mhm::MercuryHealth.Models.FoodLogEntry> mhw::MercuryHealth.Web.Models.IFoodLogEntryRepository.GetAll()
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <global::System.Linq.IQueryable <mhm::MercuryHealth.Models.FoodLogEntry> >
         ___currentMethod = ((mhw::MercuryHealth.Web.Models.IFoodLogEntryRepository) this).GetAll;
         ___observer.Enter(typeof(mhw::MercuryHealth.Web.Models.IFoodLogEntryRepository), (global::System.Delegate)___currentMethod);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <global::System.Linq.IQueryable <mhm::MercuryHealth.Models.FoodLogEntry> >
     ___sh = this.GetAll;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke());
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::MercuryHealth.Web.Models.Fakes.StubIFoodLogEntryRepository,
                                    global::System.Linq.IQueryable <mhm::MercuryHealth.Models.FoodLogEntry> >(this, "MercuryHealth.Web.Models.IFoodLogEntryRepository.GetAll"));
     }
 }
예제 #9
0
 /// <summary>Sets the stub of IWarehouse.HasInventory(String itemName, Int32 quantity)</summary>
 bool wo::WarehouseOrdering.IWarehouse.HasInventory(string itemName, int quantity)
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, int, bool> sh = this.HasInventoryStringInt32;
     if ((object)sh != (object)null)
     {
         return(sh.Invoke(itemName, quantity));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior _behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(_behavior.Result <global::WarehouseOrdering.Fakes.StubIWarehouse, bool>(this, "WarehouseOrdering.IWarehouse.HasInventory"));
     }
 }
예제 #10
0
 /// <summary>Sets the stub of ISeoSubmitLogic.ReadStopWordFile(String path)</summary>
 global::System.Collections.Generic.List <string> seoal::SEOAnalyzerLogic.ISeoSubmitLogic.ReadStopWordFile(string path)
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, global::System.Collections.Generic.List <string> > ___currentMethod
             = ((seoal::SEOAnalyzerLogic.ISeoSubmitLogic) this).ReadStopWordFile;
         ___observer.Enter(typeof(seoal::SEOAnalyzerLogic.ISeoSubmitLogic), (global::System.Delegate)___currentMethod, (object)path);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, global::System.Collections.Generic.List <string> > ___sh
         = this.ReadStopWordFileString;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke(path));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::SEOAnalyzerLogic.Fakes.StubISeoSubmitLogic, global::System.Collections.Generic.List <string> >
                    (this, "SEOAnalyzerLogic.ISeoSubmitLogic.ReadStopWordFile"));
     }
 }
예제 #11
0
 /// <summary>Sets the stub of ISeoSubmitLogic.GetSEOResult(List`1&lt;String&gt; listOfRawText, List`1&lt;String&gt; stopWordList)</summary>
 global::System.Collections.Generic.List <seobo::SEOBO.ResultBO> seoal::SEOAnalyzerLogic.ISeoSubmitLogic.GetSEOResult(global::System.Collections.Generic.List <string> listOfRawText, global::System.Collections.Generic.List <string> stopWordList)
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <global::System.Collections.Generic.List <string>,
                                                                          global::System.Collections.Generic.List <string>, global::System.Collections.Generic.List <seobo::SEOBO.ResultBO> > ___currentMethod
             = ((seoal::SEOAnalyzerLogic.ISeoSubmitLogic) this).GetSEOResult;
         ___observer.Enter(typeof(seoal::SEOAnalyzerLogic.ISeoSubmitLogic), (global::System.Delegate)___currentMethod,
                           (object)listOfRawText, (object)stopWordList);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <global::System.Collections.Generic.List <string>,
                                                                      global::System.Collections.Generic.List <string>, global::System.Collections.Generic.List <seobo::SEOBO.ResultBO> > ___sh
         = this.GetSEOResultListOfStringListOfString;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke(listOfRawText, stopWordList));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return
             (___behavior.Result <global::SEOAnalyzerLogic.Fakes.StubISeoSubmitLogic, global::System.Collections.Generic.List <seobo::SEOBO.ResultBO> >
                  (this, "SEOAnalyzerLogic.ISeoSubmitLogic.GetSEOResult"));
     }
 }
예제 #12
0
 /// <summary>Sets the stub of ISeoSubmitLogic.GetHtmlComponentlist(String content, Type type, SearchType searchtype)</summary>
 global::System.Collections.Generic.List <string> seoal::SEOAnalyzerLogic.ISeoSubmitLogic.GetHtmlComponentlist(
     string content,
     seoal::SEOAnalyzerLogic.Type type,
     seoal::SEOAnalyzerLogic.SearchType searchtype
     )
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, seoal::SEOAnalyzerLogic.Type,
                                                                          seoal::SEOAnalyzerLogic.SearchType, global::System.Collections.Generic.List <string> > ___currentMethod
             = ((seoal::SEOAnalyzerLogic.ISeoSubmitLogic) this).GetHtmlComponentlist;
         ___observer.Enter(typeof(seoal::SEOAnalyzerLogic.ISeoSubmitLogic), (global::System.Delegate)___currentMethod,
                           (object)content, (object)type, (object)searchtype);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, seoal::SEOAnalyzerLogic.Type,
                                                                      seoal::SEOAnalyzerLogic.SearchType, global::System.Collections.Generic.List <string> > ___sh = this.GetHtmlComponentlistStringTypeSearchType;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke(content, type, searchtype));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::SEOAnalyzerLogic.Fakes.StubISeoSubmitLogic, global::System.Collections.Generic.List <string> >
                    (this, "SEOAnalyzerLogic.ISeoSubmitLogic.GetHtmlComponentlist"));
     }
 }
예제 #13
0
 /// <summary>Sets the stub of ISeoSubmitLogic.GetContentString(String Url)</summary>
 string seoal::SEOAnalyzerLogic.ISeoSubmitLogic.GetContentString(string Url)
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, string> ___currentMethod
             = ((seoal::SEOAnalyzerLogic.ISeoSubmitLogic) this).GetContentString;
         ___observer.Enter(typeof(seoal::SEOAnalyzerLogic.ISeoSubmitLogic), (global::System.Delegate)___currentMethod, (object)Url);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, string> ___sh = this.GetContentStringString;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke(Url));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::SEOAnalyzerLogic.Fakes.StubISeoSubmitLogic, string>
                    (this, "SEOAnalyzerLogic.ISeoSubmitLogic.GetContentString"));
     }
 }
예제 #14
0
파일: f.cs 프로젝트: rgosik/.NET_MSTest
 /// <summary>Sets the stub of IMineSample.quadraticEquation(Int32 a, Int32 b, Int32 c)</summary>
 double i::Initial.IMineSample.quadraticEquation(
     int a,
     int b,
     int c
     )
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <int, int, int, double> ___currentMethod
             = ((i::Initial.IMineSample) this).quadraticEquation;
         ___observer.Enter(typeof(i::Initial.IMineSample), (global::System.Delegate)___currentMethod, (object)a, (object)b, (object)c);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <int, int, int, double> ___sh = this.QuadraticEquationInt32Int32Int32;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke(a, b, c));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::Initial.Fakes.StubIMineSample, double>(this, "Initial.IMineSample.quadraticEquation"));
     }
 }
예제 #15
0
 /// <summary>Ustawia element klasa zastępcza dla: IFibModule.textbook(UInt64 n)</summary>
 ulong anet::AlgoNET.IFibModule.textbook(ulong n)
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <ulong, ulong> ___currentMethod = ((anet::AlgoNET.IFibModule) this).textbook
         ;
         ___observer.Enter(typeof(anet::AlgoNET.IFibModule), (global::System.Delegate)___currentMethod, (object)n);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <ulong, ulong> ___sh = this.TextbookUInt64;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke(n));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::AlgoNET.Fakes.StubIFibModule, ulong>(this, "AlgoNET.IFibModule.textbook"));
     }
 }
예제 #16
0
 /// <summary>Sets the stub of IFileSystem.ReadAllText(String fileName)</summary>
 string rf::ReadingFiles.IFileSystem.ReadAllText(string fileName)
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, string> sh = this.ReadAllTextString;
     if ((object)sh != (object)null)
     {
         return(sh.Invoke(fileName));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior _behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(_behavior.Result <global::ReadingFiles.Fakes.StubIFileSystem, string>(this, "ReadingFiles.IFileSystem.ReadAllText"));
     }
 }
예제 #17
0
 /// <summary>Sets the stub of IClient.GetResponse(HttpClient httpClient, String url)</summary>
 string ppocdal::PostPOC.DAL.IClient.GetResponse(snh::System.Net.Http.HttpClient httpClient, string url)
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <snh::System.Net.Http.HttpClient, string, string> ___currentMethod
             = ((ppocdal::PostPOC.DAL.IClient) this).GetResponse;
         ___observer.Enter(typeof(ppocdal::PostPOC.DAL.IClient), (global::System.Delegate)___currentMethod, (object)httpClient, (object)url);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <snh::System.Net.Http.HttpClient, string, string> ___sh
         = this.GetResponseHttpClientString;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke(httpClient, url));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::PostPOC.DAL.Fakes.StubIClient, string>(this, "PostPOC.DAL.IClient.GetResponse"));
     }
 }
예제 #18
0
 /// <summary>设置 IStockFeed.GetSharePrice(String company) 的 存根</summary>
 int ca1::ConsoleApplication1.IStockFeed.GetSharePrice(string company)
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, int> ___currentMethod
             = ((ca1::ConsoleApplication1.IStockFeed) this).GetSharePrice;
         ___observer.Enter(typeof(ca1::ConsoleApplication1.IStockFeed), (global::System.Delegate)___currentMethod, (object)company);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, int> ___sh = this.GetSharePriceString;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke(company));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::ConsoleApplication1.Fakes.StubIStockFeed, int>(this, "ConsoleApplication1.IStockFeed.GetSharePrice"));
     }
 }
예제 #19
0
 /// <summary>Sets the stub of IFoodLogEntryRepository.Get(Nullable`1&lt;Int32&gt; id)</summary>
 mhm::MercuryHealth.Models.FoodLogEntry mhw::MercuryHealth.Web.Models.IFoodLogEntryRepository.Get(int?id)
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <int?, mhm::MercuryHealth.Models.FoodLogEntry> ___currentMethod
             = ((mhw::MercuryHealth.Web.Models.IFoodLogEntryRepository) this).Get;
         ___observer.Enter(typeof(mhw::MercuryHealth.Web.Models.IFoodLogEntryRepository), (global::System.Delegate)___currentMethod, (object)id);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <int?, mhm::MercuryHealth.Models.FoodLogEntry> ___sh
         = this.GetNullableOfInt32;
     if ((object)___sh != (object)null)
     {
         return(___sh.Invoke(id));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::MercuryHealth.Web.Models.Fakes.StubIFoodLogEntryRepository, mhm::MercuryHealth.Models.FoodLogEntry>
                    (this, "MercuryHealth.Web.Models.IFoodLogEntryRepository.Get"));
     }
 }
예제 #20
0
 /// <summary>Sets the stub of IPostDAL.QueryDetail(String URL)</summary>
 T ppocdal::PostPOC.DAL.IPostDAL.QueryDetail <T>(string URL)
 {
     mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObserver ___observer
         = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubObservable) this).InstanceObserver;
     if ((object)___observer != (object)null)
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, T> ___currentMethod
             = ((ppocdal::PostPOC.DAL.IPostDAL) this).QueryDetail <T>;
         ___observer.Enter(typeof(ppocdal::PostPOC.DAL.IPostDAL), (global::System.Delegate)___currentMethod, (object)URL);
     }
     mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, T> ___shg;
     if (this.___queryDetailOf1Strings.TryGetValue <mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, T> >(out ___shg))
     {
         return(___shg.Invoke(URL));
     }
     else
     {
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStubBehavior ___behavior
             = ((mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.IStub) this).InstanceBehavior;
         return(___behavior.Result <global::PostPOC.DAL.Fakes.StubIPostDAL, T>(this, "PostPOC.DAL.IPostDAL.QueryDetail"));
     }
 }
예제 #21
0
 /// <summary>Sets stubs of QueryDetail(String URL)</summary>
 public void QueryDetailOf1String <T>(mqttf::Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func <string, T> stub)
 {
     this.___queryDetailOf1Strings =
         mqttf::Microsoft.QualityTools.Testing.Fakes.Stubs.StubDelegateMap.Concat(this.___queryDetailOf1Strings, (global::System.Delegate)stub);
 }