Exemple #1
0
        public void ValidateItemIdParameter_ItemIdHasAValue_ReturnsTrue()
        {
            #region Arrange
            var externalService = new Mock <IExternalService>();
            var loggerService   = new Mock <ILoggerService>();

            ItemDomain model = new ItemDomain(externalService.Object, loggerService.Object);

            #endregion

            #region Act

            var validate = model.ValidateItemIdParameter("exampleValue");

            #endregion

            #region Assert

            Assert.IsTrue(validate);

            #endregion
        }
Exemple #2
0
        public void ValidateItemIdParameter_ItemIdIsStringEmpty_ReturnsFalse()
        {
            #region Arrange
            var externalService = new Mock <IExternalService>();
            var loggerService   = new Mock <ILoggerService>();

            ItemDomain model = new ItemDomain(externalService.Object, loggerService.Object);

            #endregion

            #region Act

            var validate = model.ValidateItemIdParameter(string.Empty);

            #endregion

            #region Assert

            Assert.IsFalse(validate);

            #endregion
        }