Exemplo n.º 1
0
        public void IOpenTheCreateEntityForm(string entityName)
        {
            var page = new GenericEntityPage(entityName, _contextConfiguration);

            page.ClickCreateButton();
            var factory = new EntityDetailFactory(_contextConfiguration);

            factory.ApplyDetails(entityName, true);
        }
Exemplo n.º 2
0
        public void WhenICreateAValidEntity(string validStr, string entityName)
        {
            bool isValid;

            switch (validStr)
            {
            case "valid":
                isValid = true;
                break;

            case "invalid":
                isValid = false;
                break;

            default:
                throw new Exception("Please specify whether a 'valid' or 'invalid' entity is required");
            }

            var page    = new GenericEntityEditPage(entityName, _contextConfiguration);
            var factory = new EntityDetailFactory(_contextConfiguration);

            factory.ApplyDetails(entityName, isValid);
            page.SubmitButton.Click();
        }
        public void Fill()
        {
            var factory = new EntityDetailFactory(contextConfiguration);

            factory.ApplyDetails(_entityName, true);
        }