// 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" }); }
// 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" }); }
// 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" }); }