public void StartedRegistration_FromJson() { StartedRegistration startedRegistration = StartedRegistration.FromJson(JsonData); Assert.IsNotNull(startedRegistration); Assert.IsNotNull(startedRegistration.Version); Assert.IsNotNull(startedRegistration.Challenge); Assert.IsNotNull(startedRegistration.AppId); Assert.IsNotNull(startedRegistration.ToJson()); Assert.IsTrue(startedRegistration.GetHashCode() != 0); Assert.AreEqual(TestConts.SERVER_CHALLENGE_REGISTER_BASE64, startedRegistration.Challenge); Assert.AreEqual(TestConts.APP_ID_ENROLL, startedRegistration.AppId); }
public void StartedRegistration_ConstructsProperly() { StartedRegistration startedRegistration = new StartedRegistration(TestConts.SERVER_CHALLENGE_REGISTER_BASE64, TestConts.APP_ID_ENROLL); Assert.IsNotNull(startedRegistration); Assert.IsNotNull(startedRegistration.Version); Assert.IsNotNull(startedRegistration.Challenge); Assert.IsNotNull(startedRegistration.AppId); Assert.IsNotNull(startedRegistration.ToJson()); Assert.IsTrue(startedRegistration.GetHashCode() != 0); Assert.AreEqual(TestConts.SERVER_CHALLENGE_REGISTER_BASE64, startedRegistration.Challenge); Assert.AreEqual(TestConts.APP_ID_ENROLL, startedRegistration.AppId); }