public void ShouldBeAbleToUpdateRewardsTitle() { InMemoryStorage storage = new InMemoryStorage(); int testedRewardId = 1; string testedTitle = "test"; RewardModel testReward = new RewardModel { Id = testedRewardId, Title = testedTitle, Description = "" }; bool result = storage.UpdateReward(testReward); var changedReward = storage.GetRewardsList().FirstOrDefault(x => x.Id == testedRewardId); Assert.True(result); Assert.NotNull(changedReward); Assert.Equal(changedReward.Title, testedTitle); }