public async Task Given_AnInvalidTestDtoObjectId_When_GetIsInvoked_Then_AnObjectNotFoundExceptionShouldBeThrown() { try { await DbContextBase.Read(StaticTestValues.InvalidId1); } catch (Exception ex) { Assert.IsInstanceOfType(ex, typeof(ObjectNotFoundException)); } }
public async Task Given_ATestDtoObjectId_When_GetIsInvoked_Then_ATestDtoObjectShouldBeReturned() { var testDtoObject = await DbContextBase.Read(StaticTestValues.ValidId1); Assert.AreEqual(StaticTestValues.ValidId1, testDtoObject.Id); }