Exemplo n.º 1
0
        public void EmptyForm_GetContentType()
        {
            //Arrange
            var target = new PgStageDetailsForm();

            //Act
            var result = target.GetContentType();

            //Assert
            result.Should().BeEmpty();
        }
Exemplo n.º 2
0
        public void CostType_Trafficking_GetContentType()
        {
            //Arrange
            var target = new PgStageDetailsForm {
                CostType = CostType.Trafficking.ToString()
            };

            //Act
            var result = target.GetContentType();

            //Assert
            result.Should().BeEmpty();
        }
Exemplo n.º 3
0
        public void CostType_Buyout_GetContentType()
        {
            //Arrange
            string expectedContentType = string.Empty;
            var    target = new PgStageDetailsForm
            {
                CostType = CostType.Buyout.ToString()
            };

            //Act
            var result = target.GetContentType();

            //Assert
            result.Should().NotBeNull();
            result.Should().Be(expectedContentType);
        }
Exemplo n.º 4
0
        public void CostType_Production_GetContentType()
        {
            //Arrange
            const string expectedContentType = "Abc";
            var          target = new PgStageDetailsForm
            {
                CostType    = CostType.Production.ToString(),
                ContentType = new core.Builders.DictionaryValue
                {
                    Key   = expectedContentType,
                    Value = "A Value"
                }
            };

            //Act
            var result = target.GetContentType();

            //Assert
            result.Should().NotBeNull();
            result.Should().Be(expectedContentType);
        }