public void SaysHelloWorld()
        {
            const string HELLO_WORLD = "Hello World";
            HWService    service     = new HWService();
            string       result      = service.SayHello();

            Assert.AreEqual(HELLO_WORLD, result);
        }
示例#2
0
 /// <summary>
 /// 建構子注入
 /// </summary>
 public MoneyController()
 {
     _unitOfWork = new UnitOfWork();
     _hwService  = new HWService(_unitOfWork);
 }
示例#3
0
 public void InitTestSuite()
 {
     this.restClientMock    = new Mock <IRestClient>();
     this.restRequestMock   = new Mock <IRestRequest>();
     this.helloWorldService = new HWService(this.restClientMock.Object, this.restRequestMock.Object);
 }