示例#1
0
        public void PhotoHelper_ConvertIDtoString_InValid_Bogus_Should_Fail()
        {
            // Arrange

            // Act
            var result = PhotoHelper.ConvertIDtoString("bogus");

            // Reset

            // Assert
            Assert.AreEqual(string.Empty, result);
        }
示例#2
0
        public void PhotoHelper_ConvertIDtoString_Valid_Should_Pass()
        {
            // Arrange
            var data = new PhotoModel
            {
                Note = "Name"
            };

            DataSourceBackend.Instance.PhotoBackend.Create(data);

            // Act
            var result = PhotoHelper.ConvertIDtoString(data.ID);

            // Reset
            DataSourceBackend.Instance.Reset();

            // Assert
            Assert.AreEqual("Name", result);
        }