public async Task VersionCheckRequestHandler_Handle_OldVersion_ErrorThrown() { VersionCheckRequestHandler requestHandler = new VersionCheckRequestHandler(); VersionCheckRequest request = VersionCheckRequest.Create(TestData.OldApplicationVersion); Should.Throw <VersionIncompatibleException>(async() => { await requestHandler.Handle(request, CancellationToken.None); }); }
public async Task VersionCheckRequestHandler_Handle_NewerVersionBuildNumber_RequestIsHandled() { VersionCheckRequestHandler requestHandler = new VersionCheckRequestHandler(); VersionCheckRequest request = VersionCheckRequest.Create(TestData.NewerApplicationVersion); Should.NotThrow(async() => { await requestHandler.Handle(request, CancellationToken.None); }); }
public async Task VersionCheckRequestHandler_Handle_RequestIsHandled() { VersionCheckRequestHandler requestHandler = new VersionCheckRequestHandler(); VersionCheckRequest request = TestData.VersionCheckRequest; Should.NotThrow(async() => { await requestHandler.Handle(request, CancellationToken.None); }); }