public async Task GetLogProperties() { PersonalizerAdministrationClient client = GetPersonalizerAdministrationClient(); PersonalizerLogProperties properties = await client.GetPersonalizerLogPropertiesAsync(); Assert.AreEqual(new DateTime(0001, 01, 01), new DateTime(properties.StartTime.Value.Year, properties.StartTime.Value.Month, properties.StartTime.Value.Day)); Assert.AreEqual(new DateTime(0001, 01, 01), new DateTime(properties.EndTime.Value.Year, properties.EndTime.Value.Month, properties.EndTime.Value.Day)); }
private async Task GetLogProperties(PersonalizerAdministrationClient client) { PersonalizerLogProperties properties = await client.GetPersonalizerLogPropertiesAsync(); DateTime start = new DateTime(properties.StartTime.Value.Year, properties.StartTime.Value.Month, properties.StartTime.Value.Day); DateTime end = new DateTime(properties.EndTime.Value.Year, properties.EndTime.Value.Month, properties.EndTime.Value.Day); DateTime expectedDefault = DateTime.MinValue; Assert.AreEqual(expectedDefault, start); Assert.AreEqual(expectedDefault, start); }