updates to pass tests

This commit is contained in:
Isaac Levin 2019-05-22 10:47:11 -04:00
parent 487ccf71e6
commit b38bcbfd62
2 changed files with 17 additions and 5 deletions

View File

@ -28,6 +28,18 @@ type TemperatureUnit =
| Fahrenheit
type WeatherResult =
member val Temperature "" with get, set
member val TemperatureUnit "" with get, set
member val Location "" with get, set
let mutable _temperature : int = 0;
let mutable _temperatureUnit : TemperatureUnit = null;
let mutable _location : string = null;
member x.Temperature
with public get() : int = _temperature
and public set(value) = _temperature <- value
member x.TemperatureUnit
with public get() : TemperatureUnit = _temperatureUnit
and public set(value) = _temperatureUnit <- value
member x.Location
with public get() : string = _location
and public set(value) = _location <- value

View File

@ -48,7 +48,7 @@ namespace Templates.Test
aspNetProcess.Process.HasExited,
ErrorMessages.GetFailedProcessMessageOrEmpty("Run built project", Project, aspNetProcess.Process));
await aspNetProcess.AssertOk("/api/values");
await aspNetProcess.AssertOk("/api/weather");
await aspNetProcess.AssertNotFound("/");
}
@ -59,7 +59,7 @@ namespace Templates.Test
ErrorMessages.GetFailedProcessMessageOrEmpty("Run published project", Project, aspNetProcess.Process));
await aspNetProcess.AssertOk("/api/values");
await aspNetProcess.AssertOk("/api/weather");
await aspNetProcess.AssertNotFound("/");
}
}