Permalink
Browse files

MessageBus - SendStringNoSubscribers

  • Loading branch information...
bobbymcr committed Nov 26, 2018
1 parent dc580dc commit be9301dc2551af1a6afdd5ea34e0f94587708d68
Showing with 38 additions and 42 deletions.
  1. +0 −16 core/src/Base.cs
  2. +15 −0 core/src/MessageBus.cs
  3. +0 −26 core/test/BaseTest.cs
  4. +23 −0 core/test/MessageBusTest.cs

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,15 @@
// <copyright file="MessageBus.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>

namespace Adventure
{
using System;

public sealed class MessageBus
{
public void Send<TMessage>(TMessage message)
{
}
}
}

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,23 @@
// <copyright file="MessageBusTest.cs" company="Brian Rogers">
// Copyright (c) Brian Rogers. All rights reserved.
// </copyright>

namespace Adventure.Test
{
using System;
using FluentAssertions;
using Xunit;

public class MessageBusTest
{
[Fact]
public void SendStringNoSubscribers()
{
MessageBus bus = new MessageBus();

Action act = () => bus.Send("hello");

act.Should().NotThrow();
}
}
}

0 comments on commit be9301d

Please sign in to comment.