public void TestUtcFields() { PutScheduledUpdateGroupActionRequest request = new PutScheduledUpdateGroupActionRequest(); DateTime timeUtc = new DateTime(2018, 7, 18, 0, 0, 0, DateTimeKind.Utc); DateTime timeLocal = new DateTime(2018, 7, 18, 0, 0, 0, DateTimeKind.Utc).ToLocalTime(); DateTime timeUnspecified = new DateTime(timeLocal.Ticks); request.StartTimeUtc = timeUtc; request.EndTimeUtc = timeLocal; request.TimeUtc = timeUnspecified; #pragma warning disable CS0618 // Type or member is obsolete Assert.AreEqual(request.StartTime, timeUtc); Assert.AreEqual(request.EndTime, timeLocal); Assert.AreEqual(request.Time, timeUnspecified); #pragma warning restore CS0618 // Type or member is obsolete Assert.AreEqual(request.StartTimeUtc, timeUtc); Assert.AreEqual(request.EndTimeUtc, timeLocal); Assert.AreEqual(request.TimeUtc, timeUnspecified); var marshaller = new PutScheduledUpdateGroupActionRequestMarshaller(); var marshalledRequest = marshaller.Marshall(request); Assert.AreEqual(marshalledRequest.Parameters["StartTime"], EXPECTED_MARSHALLED_STRING); Assert.AreEqual(marshalledRequest.Parameters["EndTime"], EXPECTED_MARSHALLED_STRING); Assert.AreEqual(marshalledRequest.Parameters["Time"], EXPECTED_MARSHALLED_STRING); }
public void PutScheduledUpdateGroupActionMarshallTest() { var operation = service_model.FindOperation("PutScheduledUpdateGroupAction"); var request = InstantiateClassGenerator.Execute <PutScheduledUpdateGroupActionRequest>(); var marshaller = new PutScheduledUpdateGroupActionRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
public void PutScheduledUpdateGroupActionMarshallTest() { var operation = service_model.FindOperation("PutScheduledUpdateGroupAction"); var request = InstantiateClassGenerator.Execute<PutScheduledUpdateGroupActionRequest>(); var marshaller = new PutScheduledUpdateGroupActionRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }