public void AcceptInvitationToLobby_LobbyInInvitedToLobbies_ProperFunctionsCalled() { MyWork.DidNotReceive().Complete(); var lobby = Substitute.For <Lobby>(); var user = new User(); lobby.DidNotReceive().AcceptLobby(Arg.Any <User>()); LobbyRepository.Get(Arg.Any <long>()).Returns(lobby); MyWork.User.Get(Arg.Any <string>()).Returns(user); uut.Accept(1); lobby.Received(1).AcceptLobby(Arg.Any <User>()); MyWork.Received(1).Complete(); }