示例#1
0
        // ReSharper disable once MemberCanBePrivate.Global MemberData works ONLY with public providers
        public static IEnumerable <object[]> SaveProvider()
        {
            yield return(new object[] { true, parser.Convert(CertificateCreatorDummy.CreateDummyCertificate()) });

            yield return(new object[] { true, parser.Convert(CertificateCreatorDummy.CreateDummyCertificateWithoutExtraProperties()) });

            yield return(new object[] { false, "jsksklkls" });
        }
示例#2
0
        // ReSharper disable once MemberCanBePrivate.Global MemberData works ONLY with public providers
        public static IEnumerable <object[]> SaveProviderIntegration()
        {
            yield return(new object[] { $"Certificate {CertificateCreatorDummy.CreateDummyCertificate()} {Environment.NewLine}saved to DB :)", parser.Convert(CertificateCreatorDummy.CreateDummyCertificate()) });

            yield return(new object[]
            {
                $"Certificate {CertificateCreatorDummy.CreateDummyCertificateWithoutExtraProperties()} {Environment.NewLine}saved to DB :)",
                parser.Convert(CertificateCreatorDummy.CreateDummyCertificateWithoutExtraProperties())
            });

            yield return(new object[] { "Certificate already exists", "jsksklkls" });
        }
示例#3
0
            // ReSharper disable once MemberCanBePrivate.Global MemberData works ONLY with public providers
            public static IEnumerable <object[]> UpdateProviderIntegration()
            {
                yield return(new object[] { "Certificate successfully updated from DB :)", parser.Convert(CertificateCreatorDummy.CreateDummyCertificate()) });

                yield return(new object[] { "Certificate successfully updated from DB :)", parser.Convert(CertificateCreatorDummy.CreateDummyCertificateWithoutExtraProperties()) });

                yield return(new object[] { "Certificate does not exist", "jsksklkls" });
            }