Esempio n. 1
0
        public async Task TestGetById()
        {
            try
            {
                Party result = await PartyService.GetByID(Context, 2);

                Assert.IsNotNull(result, "Expect to find Republican Party");
                Assert.IsTrue(result.Active, "Expect Republican Party is Active");
                Assert.AreEqual("Republican Party", result.Description, "Expect description to be Republican Party");
            }
            catch (Exception ex)
            {
                Assert.IsNull(ex, "Exception Thrown: " + ex.Message);
            }
        }