public void ShouldServertimeReturnDeployedServertime() { string actualResult = HostnameAndServerTime.GetServerTime(); string expectedResult = "wrong server time"; Assert.NotEqual(expectedResult, actualResult); }
public IHttpActionResult GetServerTime() { string serverTime = HostnameAndServerTime.GetServerTime(); return(Json($"Server Time: {serverTime}")); }