public async Task Receiving_one_build_type_id_should_add_connection_to_group() { // Arrange var connection = new TestableBuildsConnection(); // Act await connection.PubliclyOnReceived(Mock.Of <IRequest>(), "abc123", "some_build"); // Assert Assert.That(connection.AddedToGroups, Has.Count.EqualTo(1)); Assert.That(connection.AddedToGroups[0].Item1, Is.EqualTo("abc123")); Assert.That(connection.AddedToGroups[0].Item2, Is.EqualTo("some_build")); }
public async Task Receiving_one_build_type_id_should_add_connection_to_group() { // Arrange var connection = new TestableBuildsConnection(); // Act await connection.PubliclyOnReceived(Mock.Of<IRequest>(), "abc123", "some_build"); // Assert Assert.That(connection.AddedToGroups, Has.Count.EqualTo(1)); Assert.That(connection.AddedToGroups[0].Item1, Is.EqualTo("abc123")); Assert.That(connection.AddedToGroups[0].Item2, Is.EqualTo("some_build")); }