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

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

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

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

            //Assert
            result.Should().NotBeNull();
            result.Should().BeEmpty();
        }
Exemplo n.º 3
0
        public void CostType_Buyout_GetProductionType()
        {
            //Arrange
            const string expectedProductionType = "Abc";
            var          target = new PgStageDetailsForm
            {
                CostType        = CostType.Buyout.ToString(),
                UsageBuyoutType = new core.Builders.DictionaryValue
                {
                    Key = expectedProductionType
                }
            };

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

            //Assert
            result.Should().NotBeNull();
            result.Should().Be(expectedProductionType);
        }
Exemplo n.º 4
0
        public void ContentType_Digital_GetProductionType()
        {
            //Arrange
            const string expected = "N/A";
            var          target   = new PgStageDetailsForm
            {
                CostType    = CostType.Trafficking.ToString(),
                ContentType = new core.Builders.DictionaryValue
                {
                    Key = Constants.ContentType.Digital
                }
            };

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

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