Пример #1
0
        public void ThenIShouldReceiveCorrectLoginDetails(Table expectedLoginDetailsTable)
        {
            var rootObjects = new TypeCode();
            var userId      = rootObjects.GetUserId(loginObjects, TypeId);
            var title       = rootObjects.GetTitle(loginObjects, TypeId);
            var body        = rootObjects.GetBody(loginObjects, TypeId);

            foreach (var expectedLoginRow in expectedLoginDetailsTable.Rows)
            {
                Assert.AreEqual(expectedLoginRow["userId"], userId.ToString());
                Assert.AreEqual(expectedLoginRow["title"], title);
                Assert.AreEqual(expectedLoginRow["body"], body);
            }
        }