public void Should_GetFriends() { GetFriendsInput input = new GetFriendsInput { UserName = "******", ActualTime = new DateTime(2016, 6, 8, 23, 0, 0) }; var output = _memberAppService.GetFriends(input); output.Friends.Count.ShouldBe(1); var friend = output.Friends.FirstOrDefault(); friend.ShouldNotBeNull(); if (friend != null) { friend.IsOut.ShouldBe(true); } }