Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 public async Task WhenJeDemandeLaCreationDeLaPeriodePourLeMoisEtLAnnee(int month, int year)
 {
     try
     {
         await FakeServer.CreatePeriod(month, year);
     }
     catch (HttpServerError e)
     {
         TestContext.AddError(e);
     }
 }