Skip to content

Commit

Permalink
Fikser navngivning til snake_case på testene
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Aas Sjåfjell committed Oct 13, 2016
1 parent 46de980 commit 503949f
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 32 deletions.
14 changes: 7 additions & 7 deletions Difi.Oppslagstjeneste.Klient.Tester/Domene/PersonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,43 +48,43 @@ public PersonTests(PersonFixture fixture)
}

[Fact]
public void GetPidSuccess()
public void Pid_success()
{
Assert.Equal("08077000292", _fixture.Person.Personidentifikator);
}

[Fact]
public void GetReservationAndStatusSuccess()
public void Reservation_and_status_success()
{
Assert.False(_fixture.Person.Reservasjon);
Assert.Equal(Status.AKTIV, _fixture.Person.Status);
}

[Fact]
public void GetMobileAndMetadataSuccess()
public void Mobile_and_metadata_success()
{
Assert.Equal("+4740485641", _fixture.Person.Kontaktinformasjon.Mobiltelefonnummer.Nummer);
Assert.Equal(new DateTime(2015, 04, 14, 14, 35, 19), _fixture.Person.Kontaktinformasjon.Mobiltelefonnummer.SistOppdatert);
Assert.Equal(new DateTime(2015, 04, 14, 14, 35, 19), _fixture.Person.Kontaktinformasjon.Mobiltelefonnummer.SistVerifisert);
}

[Fact]
public void GetEmailAndMetadataSuccess()
public void Email_and_metadata_success()
{
Assert.Equal("[email protected]", _fixture.Person.Kontaktinformasjon.Epostadresse.Epost);
Assert.Equal(new DateTime(2015, 04, 14, 14, 35, 30), _fixture.Person.Kontaktinformasjon.Epostadresse.SistOppdatert);
Assert.Equal(new DateTime(2015, 04, 14, 14, 35, 30), _fixture.Person.Kontaktinformasjon.Epostadresse.SistVerifisert);
}

[Fact]
public void GetSikkkerDigitalPostAddressSuccess()
public void Sikker_digital_post_address_success()
{
Assert.Equal("id.porten.testuser#2346", _fixture.Person.SikkerDigitalPostAdresse.Postkasseadresse);
Assert.Equal("984661185", _fixture.Person.SikkerDigitalPostAdresse.PostkasseleverandørAdresse);
}

[Fact]
public void GetSertificateSuccess()
[Fact]
public void Certificate_success()
{
var expected =
new X509Certificate2(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Difi.Oppslagstjeneste.Klient.Tests.Domene

public class SoapExceptionTests
{
public static void ParseSoapExceptionSuksess()
public static void Parse_soap_exception_suksess()
{
//Arrange
var expectedGuilty = "env:Sender";
Expand Down
4 changes: 2 additions & 2 deletions Difi.Oppslagstjeneste.Klient.Tester/DtoConverterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class DtoConverterTests
public class ToDomainObject : DtoConverterTests
{
[Fact]
public void ConvertPerson()
public void Convert_person()
{
//Arrange
var source = new HentPersonerRespons
Expand All @@ -48,7 +48,7 @@ public void ConvertPerson()
}

[Fact]
public void ConvertChanges()
public void Convert_changes()
{
//Arrange
const int personsCount = 10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class EndringerEnvelopeTests
public class ConstructorMethod : EndringerEnvelopeTests
{
[Fact]
public void EnkelKonstruktør()
public void Initializes_fields()
{
//Arrange
var senderUnitTestCertificate = DomainUtility.GetSenderUnitTestCertificate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class OppslagstjenesteValidatorTests
public class ConstructorMethod : OppslagstjenesteValidatorTests
{
[Fact]
public void EnkelKonstruktør()
public void Initializes_fields()
{
//Arrange
var requestXmlDocument = XmlResource.Request.GetPerson();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ namespace Difi.Oppslagstjeneste.Klient.Tests.Envelope
public class PersonerEnvelopeTests
{

public class KonstruktørMethod : PersonerEnvelopeTests
public class ConstructorMethod : PersonerEnvelopeTests
{
[Fact]
public void InitializesFields()
public void Initializes_fields()
{
//Arrange
var senderUnitTestCertificate = DomainUtility.GetSenderUnitTestCertificate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
namespace Difi.Oppslagstjeneste.Klient.Tests.Envelope
{

public class KonstruktørMethod : PersonerEnvelopeTests
public class ConstructorMethod : PersonerEnvelopeTests
{
[Fact]
public void EnkelKonstruktør()
public void Initializes_fields()
{
//Arrange
var senderUnitTestCertificate = DomainUtility.GetSenderUnitTestCertificate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class KlientkonfigurasjonTests
public class ConstructorMethod : KlientkonfigurasjonTests
{
[Fact]
public void InitializesFields()
public void Initializes_fields()
{
//Arrange
var environment = Miljø.FunksjoneltTestmiljøVerifikasjon1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class OppslagstjenesteHelperTests
public class SendAsyncMethod : OppslagstjenesteHelperTests
{
[Fact]
public void OppslagstjenesteKlientHandlesGenericSoapFaultCorrectly()
public void Handles_generic_soap_fault_correctly()
{
//Arrange
var senderUnitTestCertificate = DomainUtility.GetSenderUnitTestCertificate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class OppslagstjenesteKlientTests
public class ConstructorMethod : OppslagstjenesteKlientTests
{
[Fact]
public void InitializesWithCertificates()
public void Initializes_with_certificates()
{
//Arrange
var senderUnitTestCertificate = DomainUtility.GetSenderUnitTestCertificate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class OppslagstjenesteKonfigurasjonTests
public class ConstructorMethod : OppslagstjenesteKonfigurasjonTests
{
[Fact]
public void InitializesFields()
public void Initializes_fields()
{
//Arrange
const bool forventetLoggForespørselOgRespons = false;
Expand Down
6 changes: 3 additions & 3 deletions Difi.Oppslagstjeneste.Klient.Tester/Smoke/SmokeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public SmokeTests()
}

[Fact]
public async Task GetPersonsSuccess()
public async Task Get_persons_success()
{
//Arrange
var pid = "08077000292";
Expand All @@ -37,7 +37,7 @@ public async Task GetPersonsSuccess()
}

[Fact]
public async Task GetChangesSuccess()
public async Task Get_changes_success()
{
//Arrange

Expand All @@ -53,7 +53,7 @@ public async Task GetChangesSuccess()
}

[Fact]
public async Task GetPrintCertificateSuccess()
public async Task Get_print_certificate_success()
{
var printCertificate = await _oppslagstjenesteKlient.HentPrintSertifikatAsynkront();

Expand Down
10 changes: 5 additions & 5 deletions Difi.Oppslagstjeneste.Klient.Tester/Svar/EndringerSvarTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,33 @@ public EndringerSvarFixture()

public class EndringerSvarTests : IClassFixture<EndringerSvarFixture>
{
private EndringerSvarFixture _fixture;
private readonly EndringerSvarFixture _fixture;

public EndringerSvarTests(EndringerSvarFixture fixture)
{
_fixture = fixture;
}

[Fact]
public void HentTrePersonerEndringerSuksess()
public void Hent_tre_personer_endringer_suksess()
{
Assert.Equal(3, _fixture.EndringerSvar.Personer.Count());
}

[Fact]
public void HentFraEndringsnummerSuksess()
public void Hent_fra_endringsnummer_suksess()
{
Assert.Equal(600, _fixture.EndringerSvar.FraEndringsNummer);
}

[Fact]
public void HentTilEndringsnummerSuksess()
public void Hent_til_endringsnummer_suksess()
{
Assert.Equal(5791, _fixture.EndringerSvar.TilEndringsNummer);
}

[Fact]
public void HentSenesteEndringsnummerSuksess()
public void Hent_seneste_endringsnummer_suksess()
{
Assert.Equal(2925086, _fixture.EndringerSvar.SenesteEndringsNummer);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public PersonerSvarTests()
}

[Fact]
public void HentEnPersonSuksess()
public void Hent_en_person_suksess()
{
Assert.Equal(1, _personerSvar.Personer.Count());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ public PrintSertifikatSvarFixture()

public class PrintSertifikatSvarTests : IClassFixture<PrintSertifikatSvarFixture>
{
private PrintSertifikatSvarFixture _fixture;
private readonly PrintSertifikatSvarFixture _fixture;

public PrintSertifikatSvarTests(PrintSertifikatSvarFixture fixture)
{
_fixture = fixture;
}
[Fact]
public void HentSertifikatSuksess()
public void Hent_sertifikat_suksess()
{
var expectedThumb =
new X509Certificate2(
Expand All @@ -42,7 +42,7 @@ public void HentSertifikatSuksess()
}

[Fact]
public void HentPostkasseleverandørAdresseSuksess()
public void Hent_postkasseleverandør_adresse_suksess()
{
Assert.Equal("984661185", _fixture.PrintSertifikatSvar.PostkasseleverandørAdresse);
}
Expand Down

0 comments on commit 503949f

Please sign in to comment.