예제 #1
0
        public async Task Create_Journal_Entry_Configuration_Check_With_No_Upstream_Crate()
        {
            //Arrange
            var curMessage =
                "When this Action runs, it will be expecting to find a Crate of Standard Accounting Transactions. " +
                "Right now, it doesn't detect any Upstream Actions that produce that kind of Crate. " +
                "Please add an activity upstream (to the left) of this action that does so.";
            var configureUrl     = GetTerminalConfigureUrl();
            var requestActionDTO = HealthMonitor_FixtureData.Activity_Create_Journal_Entry_v1_InitialConfiguration_Fr8DataDTO();
            //Act
            var responseActionDTO = await HttpPostAsync <Fr8DataDTO, ActivityDTO>(
                configureUrl,
                requestActionDTO
                );

            //Assert
            Assert.NotNull(responseActionDTO);
            Assert.NotNull(responseActionDTO.CrateStorage);
            var crateStorage = Crate.FromDto(responseActionDTO.CrateStorage);
            var controls     = crateStorage.CrateContentsOfType <StandardConfigurationControlsCM>().Single().Controls;

            Assert.AreEqual(0, controls.Count);
        }