public void SaysHelloWorld() { const string HELLO_WORLD = "Hello World"; HWService service = new HWService(); string result = service.SayHello(); Assert.AreEqual(HELLO_WORLD, result); }
/// <summary> /// 建構子注入 /// </summary> public MoneyController() { _unitOfWork = new UnitOfWork(); _hwService = new HWService(_unitOfWork); }
public void InitTestSuite() { this.restClientMock = new Mock <IRestClient>(); this.restRequestMock = new Mock <IRestRequest>(); this.helloWorldService = new HWService(this.restClientMock.Object, this.restRequestMock.Object); }