public async Task Add_new_period_with_authenticated_user() { using (var server = new FakeServer()) { await server.Authenticate("Aurélien", "1234"); var response = await server.CreatePeriod(1, 2000); response.Should().Be(HttpStatusCode.OK); } }
public async Task WhenJeDemandeLaCreationDeLaPeriodePourLeMoisEtLAnnee(int month, int year) { try { await FakeServer.CreatePeriod(month, year); } catch (HttpServerError e) { TestContext.AddError(e); } }