public void ReturnsAssets() { // TODO - id always required? any unattached assets? IApiFulfillment impl = new FulfilmentImpl(new GameDataStub()); List <Asset> actual = impl.MyAssets(MR_CHARACTER_FIRST_ID); Assert.NotNull(actual); Assert.NotEmpty(actual); }
public void MyAssetsArePopulated() { IApiFulfillment impl = new FulfilmentImpl(new GameDataStub()); List <Asset> actual = impl.MyAssets(MR_CHARACTER_FIRST_ID); Asset anAsset = actual[0]; Assert.NotNull(anAsset.Id); Assert.NotNull(anAsset.Name); Assert.NotNull(anAsset.Description); }
public void ReturnsJustMyAssets() { IApiFulfillment impl = new FulfilmentImpl(new GameDataStub()); List <Asset> actual = impl.MyAssets(MR_CHARACTER_FIRST_ID); Assert.Single(actual); Asset asset = actual[0]; Assert.Equal("6bcdb901-dab3-4091-a5c9-000000000050", asset.Id); Assert.Equal("Investments", asset.Name); Assert.Equal("Well hidden source of income", asset.Description); }