Beispiel #1
0
        public static IEnumerable <object[]> GetInvalidEmails()
        {
            yield return(new object[] { "", "*****@*****.**", "assunto", ProjectMock.GetProject() });

            yield return(new object[] { "*****@*****.**", "", "assunto", ProjectMock.GetProject() });

            yield return(new object[] { "*****@*****.**", "*****@*****.**", "", ProjectMock.GetProject() });

            yield return(new object[] { "*****@*****.**", "*****@*****.**", "assunto", null });
        }
Beispiel #2
0
        public static IEnumerable <object[]> GetTemplates()
        {
            yield return(new object[] { "", "Teste de Mail Template", ProjectMock.GetProject(), "*****@*****.**", "assunto" });

            yield return(new object[] { "TEMPLATE_ID", "", ProjectMock.GetProject(), "*****@*****.**", "assunto" });

            yield return(new object[] { "TEMPLATE_ID", "Teste de Mail Template", null, "*****@*****.**", "assunto" });

            yield return(new object[] { "TEMPLATE_ID", "Teste de Mail Template", ProjectMock.GetProject(), "", "assunto" });

            yield return(new object[] { "TEMPLATE_ID", "Teste de Mail Template", ProjectMock.GetProject(), "*****@*****.**", "" });
        }
        public void SeedProjects()
        {
            try
            {
                _logger.LogInformation("Starting Re-Seed Projects Values");

                // re seed all record
                var mocks = new ProjectMock();
                foreach (var item in mocks.GetProject())
                {
                    _configurationDBContext.Projects.Add(item);
                }
                _configurationDBContext.SaveChanges();
                _logger.LogInformation("Projects Values Successfully Populated");
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "Exception Occured In Projects Seed Block.");
                throw;
            }
        }
Beispiel #4
0
        public void Deve_Criar_Projeto_Valido()
        {
            var project = ProjectMock.GetProject();

            Assert.NotNull(project);
        }