public async void TrySaveAsync_ValidRetro_RetroWasSaved() { var retro = m_retroBuilder.ValidRetro().Build(); var retroWasSaved = await m_cut.TrySaveAsync(retro); retroWasSaved.Should().BeTrue("Retro object was valid"); }
public async void CreateReadDelete_CreatedJson_ShouldHaveSameId() { try { var expectedRetro = m_retroBuilder.ValidRetro().Build(); await m_cut.Create(expectedRetro); var retros = await m_cut.Read(); if (retros.Count == 1) { var readRetro = retros.First(); readRetro.Id.Should().Be(expectedRetro.Id); } await m_cut.Delete(expectedRetro); } catch (Exception) { Assert.True(false); } }