Example #1
0
        public void TestReadSuccess()
        {
            // arrange
            var expected = new UserEntity();
            var fixture  = new UserMySqlDataStore(new MySqlDataStoreConnection(
                                                      "Server=143.110.159.170;Port=3306;Database=donstringham;Uid=donstringham;Pwd=letmein;"
                                                      ));

            // act and assert
            Assert.ThrowsException <NotImplementedException>(() => fixture.Read("0-0-0-0-0"));
        }
Example #2
0
        public void TestReadEmpty()
        {
            // arrange
            var expected = new UserEntity();
            var fixture  = new UserMySqlDataStore(new MySqlDataStoreConnection(
                                                      "Server=143.110.159.170;Port=3306;Database=donstringham;Uid=donstringham;Pwd=letmein;"
                                                      ));
            // act
            UserEntity actual = (UserEntity)fixture.Read("0a23f006-3631-44d0-bf12-cabb03aee11d");

            // assert
            Assert.AreEqual(expected.Name, actual.Name);
        }